From 2523235a3161c4ed7c33c54cf6d458710d1e6923 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 3 Nov 2025 10:47:06 +0100 Subject: [PATCH] avcodec/amfdec: Don't set AVCodec.pix_fmts It is not supposed to be set by decoders (where format negotiation happens via the get_format callback). Signed-off-by: Andreas Rheinhardt --- libavcodec/amfdec.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/libavcodec/amfdec.c b/libavcodec/amfdec.c index 7b038c6181..1a2eb9392c 100644 --- a/libavcodec/amfdec.c +++ b/libavcodec/amfdec.c @@ -44,14 +44,6 @@ //will be in public headers soon #define AMF_VIDEO_DECODER_OUTPUT_FORMAT L"OutputDecodeFormat" -const enum AVPixelFormat amf_dec_pix_fmts[] = { - AV_PIX_FMT_NV12, - AV_PIX_FMT_P010, - AV_PIX_FMT_P012, - AV_PIX_FMT_AMF_SURFACE, - AV_PIX_FMT_NONE -}; - static const AVCodecHWConfigInternal *const amf_hw_configs[] = { &(const AVCodecHWConfigInternal) { .public = { @@ -716,7 +708,6 @@ const FFCodec ff_##x##_amf_decoder = { \ .bsfs = bsf_name, \ .p.capabilities = AV_CODEC_CAP_HARDWARE | AV_CODEC_CAP_DELAY | AV_CODEC_CAP_AVOID_PROBING, \ .p.priv_class = &amf_decode_class, \ - CODEC_PIXFMTS_ARRAY(amf_dec_pix_fmts), \ .hw_configs = amf_hw_configs, \ .p.wrapper_name = "amf", \ .caps_internal = FF_CODEC_CAP_NOT_INIT_THREADSAFE, \