summaryrefslogtreecommitdiff
path: root/ffprobe.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-13 01:08:16 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-13 01:45:27 +0200
commita75d22445ecb7adbe3fb8f705cb4fd9aa0d6b5ee (patch)
tree3670341dc29db046ffa4df2dc3803e2ce76a91a7 /ffprobe.c
parentdf037fe107ccfae4b26ee0e46b638b052f6e49f8 (diff)
downloadffmpeg-a75d22445ecb7adbe3fb8f705cb4fd9aa0d6b5ee.tar.gz
ffprobe: check av_asprintf() for failure
Found-by: Daemon404 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffprobe.c')
-rw-r--r--ffprobe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ffprobe.c b/ffprobe.c
index 415836b72a..3e5324e36b 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -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);