diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2016-11-17 14:11:13 +0300 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2016-11-17 22:28:45 +0300 |
commit | 427a47abcddab15e10ce26d971f712d90c53884b (patch) | |
tree | 1156b5f1cfc2b4cacd64779186ff1e205aa3db22 | |
parent | 709c87109dc856abff9c905dfda3ca954453828a (diff) |
ffprobe: fix crash in case -of is specified with an empty string
Fix trac issue #5957.
-rw-r--r-- | ffprobe.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -3311,6 +3311,12 @@ int main(int argc, char **argv) goto end; } w_name = av_strtok(print_format, "=", &buf); + if (!w_name) { + av_log(NULL, AV_LOG_ERROR, + "No name specified for the output format\n"); + ret = AVERROR(EINVAL); + goto end; + } w_args = buf; if (show_data_hash) { |