Skip to content
Snippets Groups Projects
Commit a75d2244 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

ffprobe: check av_asprintf() for failure


Found-by: Daemon404
Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent df037fe1
No related branches found
No related tags found
No related merge requests found
......@@ -2831,6 +2831,9 @@ static int opt_show_format_entry(void *optctx, const char *opt, const char *arg)
char *buf = av_asprintf("format=%s", arg);
int ret;
if (!buf)
return AVERROR(ENOMEM);
av_log(NULL, AV_LOG_WARNING,
"Option '%s' is deprecated, use '-show_entries format=%s' instead\n",
opt, arg);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment