summaryrefslogtreecommitdiff
path: root/cmdutils.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-08-29 09:43:20 +0200
committerAnton Khirnov <anton@khirnov.net>2012-08-30 13:56:00 +0200
commite2785fa728cc5b0d9939090b4398067a32856a3c (patch)
tree958da0ba75baf0b750e4bd9e4f2a4e7b409f5895 /cmdutils.c
parenta2318326f13f0e86c6d7222ec15659d2fa7d666f (diff)
cmdutils: make -codecs print lossy/lossless flags.
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/cmdutils.c b/cmdutils.c
index 4462858aa4..9a79d49e12 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 : "");