1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-23 22:16:45 +02:00

ffprobe: check av_asprintf() for failure

Found-by: Daemon404
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2015-06-13 01:08:16 +02:00
parent df037fe107
commit a75d22445e

View File

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