X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=ffprobe.c;h=3e5324e36b93e28a5664d24dbad6ff18698703e9;hb=b368428fc0b54762944fb7f7dae8093114c595b1;hp=415836b72a8d54c11c9cd233fac269c7daf3b7e6;hpb=14617e3a739ea23e8da9adcdca4418f2b14a3956;p=ffmpeg diff --git a/ffprobe.c b/ffprobe.c index 415836b72a8..3e5324e36b9 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);