diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-06-13 01:08:16 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-13 01:45:27 +0200 |
commit | a75d22445ecb7adbe3fb8f705cb4fd9aa0d6b5ee (patch) | |
tree | 3670341dc29db046ffa4df2dc3803e2ce76a91a7 /ffprobe.c | |
parent | df037fe107ccfae4b26ee0e46b638b052f6e49f8 (diff) | |
download | ffmpeg-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |