ffprobe: fix crash in case -of is specified with an empty string
Fix trac issue #5957. (cherry picked from commit 427a47abcddab15e10ce26d971f712d90c53884b) Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
This commit is contained in:
parent
08f26d99b5
commit
31c9c7ad82
@ -3311,6 +3311,12 @@ int main(int argc, char **argv)
|
|||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
w_name = av_strtok(print_format, "=", &buf);
|
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;
|
w_args = buf;
|
||||||
|
|
||||||
if (show_data_hash) {
|
if (show_data_hash) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user