OSDN Git Service

cmdutils: use new avcodec_is_decoder/encoder() functions.
authorAnton Khirnov <anton@khirnov.net>
Fri, 2 Mar 2012 16:05:01 +0000 (17:05 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sun, 4 Mar 2012 20:09:35 +0000 (21:09 +0100)
Fixes listing encoders.

cmdutils.c

index 985931c..ed0813f 100644 (file)
@@ -658,9 +658,9 @@ void show_codecs(void)
                 decode = encode = cap = 0;
             }
             if (p2 && strcmp(p->name, p2->name) == 0) {
-                if (p->decode)
+                if (av_codec_is_decoder(p))
                     decode = 1;
-                if (p->encode)
+                if (av_codec_is_encoder(p))
                     encode = 1;
                 cap |= p->capabilities;
             }