diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-02-05 19:46:14 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-02-09 08:16:25 +0100 |
commit | 89995cfda12ef460e945c68b49ca3172904012b8 (patch) | |
tree | b038cb4c5a422745d3b38984d8ef03fc84b1634e /libavcodec/qsvdec.c | |
parent | 395469c1b091bee355517fb3a90e6f0b6b10558a (diff) | |
download | ffmpeg-89995cfda12ef460e945c68b49ca3172904012b8.tar.gz |
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/qsvdec.c')
-rw-r--r-- | libavcodec/qsvdec.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c index 559f63698a..812bfd8830 100644 --- a/libavcodec/qsvdec.c +++ b/libavcodec/qsvdec.c @@ -1127,17 +1127,6 @@ const FFCodec ff_##x##_qsv_decoder = { \ .bsfs = bsf_name, \ .p.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_DR1 | AV_CODEC_CAP_AVOID_PROBING | AV_CODEC_CAP_HYBRID, \ .p.priv_class = &x##_qsv_class, \ - .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_NV12, \ - AV_PIX_FMT_P010, \ - AV_PIX_FMT_P012, \ - AV_PIX_FMT_YUYV422, \ - AV_PIX_FMT_Y210, \ - AV_PIX_FMT_Y212, \ - AV_PIX_FMT_VUYX, \ - AV_PIX_FMT_XV30, \ - AV_PIX_FMT_XV36, \ - AV_PIX_FMT_QSV, \ - AV_PIX_FMT_NONE }, \ .hw_configs = qsv_hw_configs, \ .p.wrapper_name = "qsv", \ .caps_internal = FF_CODEC_CAP_NOT_INIT_THREADSAFE, \ |