Re: [FFmpeg-devel] [PATCH 1/6] avcodec: Remove redundant pix_fmts from decoders

2024-02-07 Thread Andreas Rheinhardt
Andreas Rheinhardt: > 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

[FFmpeg-devel] [PATCH 1/6] avcodec: Remove redundant pix_fmts from decoders

2024-02-05 Thread Andreas Rheinhardt
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