Change #271321
| Category | ffmpeg |
| Changed by | James Almer <jamrial@gmail.com> |
| Changed at | Tue 16 Jun 2026 15:11:32 |
| Repository | https://git.ffmpeg.org/ffmpeg.git |
| Project | ffmpeg |
| Branch | master |
| Revision | 140d708d65f65dbfb10ee44d87964c66554f4373 |
Comments
avcodec/codec_par: copy AVCodecContext sw_pix_fmt instead of pix_fmt to AVCodecParameters if set In case of an encoding scenario using a hardware encoder, AVCodecContext->pix_fmt may be a hwaccel format that conveys no information muxers can use when looking at its descriptor, as is the case of bitdepth. As such, if sw_pix_fmt is set, copy that value instead. Fixes issue #23420 Signed-off-by: James Almer <jamrial@gmail.com>
Changed files
- libavcodec/codec_par.c