[FFmpeg-cvslog] cmdutils: make -codecs print lossy/lossless flags.

Anton Khirnov git at videolan.org
Fri Aug 31 13:08:34 CEST 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Aug 29 09:43:20 2012 +0200| [e2785fa728cc5b0d9939090b4398067a32856a3c] | committer: Anton Khirnov

cmdutils: make -codecs print lossy/lossless flags.

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

 cmdutils.c |   18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/cmdutils.c b/cmdutils.c
index 4462858..9a79d49 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -741,13 +741,15 @@ int show_codecs(const char *opt, const char *arg)
     const AVCodecDescriptor *desc = NULL;
 
     printf("Codecs:\n"
-           " D... = Decoding supported\n"
-           " .E.. = Encoding supported\n"
-           " ..V. = Video codec\n"
-           " ..A. = Audio codec\n"
-           " ..S. = Subtitle codec\n"
-           " ...I = Intra frame-only codec\n"
-           " -----\n");
+           " D..... = Decoding supported\n"
+           " .E.... = Encoding supported\n"
+           " ..V... = Video codec\n"
+           " ..A... = Audio codec\n"
+           " ..S... = Subtitle codec\n"
+           " ...I.. = Intra frame-only codec\n"
+           " ....L. = Lossy compression\n"
+           " .....S = Lossless compression\n"
+           " -------\n");
     while ((desc = avcodec_descriptor_next(desc))) {
         const AVCodec *codec = NULL;
 
@@ -756,6 +758,8 @@ int show_codecs(const char *opt, const char *arg)
 
         printf("%c", get_media_type_char(desc->type));
         printf((desc->props & AV_CODEC_PROP_INTRA_ONLY) ? "I" : ".");
+        printf((desc->props & AV_CODEC_PROP_LOSSY)      ? "L" : ".");
+        printf((desc->props & AV_CODEC_PROP_LOSSLESS)   ? "S" : ".");
 
         printf(" %-20s %s", desc->name, desc->long_name ? desc->long_name : "");
 



More information about the ffmpeg-cvslog mailing list