aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-03-31 00:19:37 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-04-05 19:46:51 +0200
commit1c3c29d07d7e0b7f5bec13cb0214f90e26604aee (patch)
tree4ae4a1c865ce342fc48209f3de51cc6ba5cb7857 /libavcodec
parent21ca2210684b424ec34ae6a13ceec0e367654528 (diff)
downloadffmpeg-1c3c29d07d7e0b7f5bec13cb0214f90e26604aee.tar.gz
avcodec/options: Fix AVClassCategory of decoders with .receive_frame
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/options.c b/libavcodec/options.c
index 91ab994994..2e05d29e1e 100644
--- a/libavcodec/options.c
+++ b/libavcodec/options.c
@@ -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;