gchar *plugin_name;
/* only decoders */
- if (!in_plugin->decode || in_plugin->type != AVMEDIA_TYPE_AUDIO) {
+ if (!av_codec_is_decoder (in_plugin)
+ || in_plugin->type != AVMEDIA_TYPE_AUDIO) {
goto next;
}
}
/* only encoders */
- if (!in_plugin->encode2) {
+ if (!av_codec_is_encoder (in_plugin)) {
goto next;
}
gchar *plugin_name;
/* only video decoders */
- if (!in_plugin->decode || in_plugin->type != AVMEDIA_TYPE_VIDEO)
+ if (!av_codec_is_decoder (in_plugin)
+ || in_plugin->type != AVMEDIA_TYPE_VIDEO)
goto next;
/* no quasi-codecs, please */
}
/* only video encoders */
- if (!in_plugin->encode2 || in_plugin->type != AVMEDIA_TYPE_VIDEO)
+ if (!av_codec_is_encoder (in_plugin)
+ || in_plugin->type != AVMEDIA_TYPE_VIDEO)
goto next;
/* FIXME : We should have a method to know cheaply whether we have a mapping