cmdutils: omit deprecated codec ids in help output
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 29 Apr 2014 19:55:59 +0000 (21:55 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 29 Apr 2014 20:13:35 +0000 (22:13 +0200)
These ids should be meaningless for the end user and would only
confuse

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
cmdutils.c

index 934fd4c..1147bc3 100644 (file)
@@ -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" : ".");