Browse Source

ffprobe: check av_asprintf() for failure

Found-by: Daemon404
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.8
Michael Niedermayer 10 years ago
parent
commit
a75d22445e
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      ffprobe.c

+ 3
- 0
ffprobe.c 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);


Loading…
Cancel
Save