summaryrefslogtreecommitdiff
path: root/libavcodec/xfacedec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-02-05 19:46:14 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-02-09 08:16:25 +0100
commit89995cfda12ef460e945c68b49ca3172904012b8 (patch)
treeb038cb4c5a422745d3b38984d8ef03fc84b1634e /libavcodec/xfacedec.c
parent395469c1b091bee355517fb3a90e6f0b6b10558a (diff)
avcodec: Remove redundant pix_fmts from decoders
AVCodec.pix_fmts is only intended for encoders (decoders use the get_format callback to let the user choose a pix fmt). So remove them for the decoders for which this is possible without further complications; keep them for now in the codecs that actually use them (by passing avctx->codec->pix_fmts to ff_get_formatt()). Also notice that some of these lists were wrong; e.g. 317b7b06fd97cd39feac7df57db22a30550351ff added support for YUV444P16 for cuviddec, but forgot to add it to pix_fmts. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/xfacedec.c')
-rw-r--r--libavcodec/xfacedec.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/xfacedec.c b/libavcodec/xfacedec.c
index 378d6aea0e..78b70cae8c 100644
--- a/libavcodec/xfacedec.c
+++ b/libavcodec/xfacedec.c
@@ -182,5 +182,4 @@ const FFCodec ff_xface_decoder = {
.priv_data_size = sizeof(XFaceContext),
.init = xface_decode_init,
FF_CODEC_DECODE_CB(xface_decode_frame),
- .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_MONOWHITE, AV_PIX_FMT_NONE },
};