[FFmpeg-cvslog] cmdutils: omit deprecated codec ids in help output

Michael Niedermayer git at videolan.org
Tue Apr 29 22:15:29 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Apr 29 21:55:59 2014 +0200| [978c193d47c08edad5aa1931a89622c3a0a5c601] | committer: Michael Niedermayer

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 at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=978c193d47c08edad5aa1931a89622c3a0a5c601
---

 cmdutils.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/cmdutils.c b/cmdutils.c
index 934fd4c..1147bc3 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" : ".");



More information about the ffmpeg-cvslog mailing list