Browse Source

ffprobe: fix crash in case -of is specified with an empty string

Fix trac issue #5957.

(cherry picked from commit 427a47abcd)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
tags/n3.2.1
Stefano Sabatini Andreas Cadhalpun 8 years ago
parent
commit
31c9c7ad82
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      ffprobe.c

+ 6
- 0
ffprobe.c View File

@@ -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) {


Loading…
Cancel
Save