Commit 3faa141d authored by Anton Khirnov's avatar Anton Khirnov

cmdutils: use new avcodec_is_decoder/encoder() functions.

Fixes listing encoders.
parent 44fe77b3
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment