avcodec/options: Fix AVClassCategory of decoders with .receive_frame

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2022-03-31 00:19:37 +02:00
parent 21ca221068
commit 1c3c29d07d
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ static const AVClass *codec_child_class_iterate(void **iter)
static AVClassCategory get_category(void *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;
else
return AV_CLASS_CATEGORY_ENCODER;