From 978c193d47c08edad5aa1931a89622c3a0a5c601 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 29 Apr 2014 21:55:59 +0200 Subject: [PATCH] cmdutils: omit deprecated codec ids in help output These ids should be meaningless for the end user and would only confuse Signed-off-by: Michael Niedermayer --- cmdutils.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmdutils.c b/cmdutils.c index 934fd4c74d..1147bc338e 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -1385,6 +1385,9 @@ int show_codecs(void *optctx, const char *opt, const char *arg) const AVCodecDescriptor *desc = codecs[i]; const AVCodec *codec = NULL; + if (strstr(desc->name, "_deprecated")) + continue; + printf(" "); printf(avcodec_find_decoder(desc->id) ? "D" : "."); printf(avcodec_find_encoder(desc->id) ? "E" : ".");