aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-29 21:55:59 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-29 22:13:35 +0200
commit978c193d47c08edad5aa1931a89622c3a0a5c601 (patch)
treef364458c052c0932d9a589fa0f43128dc07eafc3
parent375a0c03a9a401a328a94b3d9f5338ab1524f7ef (diff)
downloadffmpeg-978c193d47c08edad5aa1931a89622c3a0a5c601.tar.gz
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 <michaelni@gmx.at>
-rw-r--r--cmdutils.c3
1 files changed, 3 insertions, 0 deletions
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" : ".");