You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/options: Fix AVClassCategory of decoders with .receive_frame
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -68,7 +68,7 @@ static const AVClass *codec_child_class_iterate(void **iter)
|
|||||||
static AVClassCategory get_category(void *ptr)
|
static AVClassCategory get_category(void *ptr)
|
||||||
{
|
{
|
||||||
AVCodecContext* avctx = ptr;
|
AVCodecContext* avctx = ptr;
|
||||||
if (avctx->codec && ffcodec(avctx->codec)->decode)
|
if (avctx->codec && av_codec_is_decoder(avctx->codec))
|
||||||
return AV_CLASS_CATEGORY_DECODER;
|
return AV_CLASS_CATEGORY_DECODER;
|
||||||
else
|
else
|
||||||
return AV_CLASS_CATEGORY_ENCODER;
|
return AV_CLASS_CATEGORY_ENCODER;
|
||||||
|
Reference in New Issue
Block a user