[FFmpeg-cvslog] cmdutils: use new avcodec_is_decoder/encoder() functions.
Anton Khirnov
git at videolan.org
Mon Mar 5 00:28:57 CET 2012
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri Mar 2 17:05:01 2012 +0100| [3faa141d15bf9945fa54331e51b3f10b9970d5d2] | committer: Anton Khirnov
cmdutils: use new avcodec_is_decoder/encoder() functions.
Fixes listing encoders.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3faa141d15bf9945fa54331e51b3f10b9970d5d2
---
cmdutils.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmdutils.c b/cmdutils.c
index 985931c..ed0813f 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -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;
}
More information about the ffmpeg-cvslog
mailing list