cmdutils: use new avcodec_is_decoder/encoder() functions.

Fixes listing encoders.
This commit is contained in:
Anton Khirnov 2012-03-02 17:05:01 +01:00
parent 44fe77b350
commit 3faa141d15
1 changed files with 2 additions and 2 deletions

View 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;
}