diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-03-02 17:05:01 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-03-04 21:09:35 +0100 |
commit | 3faa141d15bf9945fa54331e51b3f10b9970d5d2 (patch) | |
tree | 7c9ea61e76d5cbffb3aa46282da2246e2b19bd1a /cmdutils.c | |
parent | 44fe77b350fd812c84cd866b7d03e436acc3bab2 (diff) | |
download | ffmpeg-3faa141d15bf9945fa54331e51b3f10b9970d5d2.tar.gz |
cmdutils: use new avcodec_is_decoder/encoder() functions.
Fixes listing encoders.
Diffstat (limited to 'cmdutils.c')
-rw-r--r-- | cmdutils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmdutils.c b/cmdutils.c index 985931cce6..ed0813f986 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; } |