diff options
author | Geoffrey McRae <geoff@hostfission.com> | 2023-11-26 15:33:22 +1100 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2023-11-26 10:18:33 -0300 |
commit | a8677bcc8f2f9561be070cb9412c5a2be9e5be7f (patch) | |
tree | 01ea9cba157aea96cc0673b37f4f9a08e56c96bb /tests/ref/fate/exr-rgba-scanline-float-half-b44-13x9-l1 | |
parent | 47b2328076f865a12dd0d50aed02fbef32f69490 (diff) | |
download | ffmpeg-a8677bcc8f2f9561be070cb9412c5a2be9e5be7f.tar.gz |
libavcodec/dcadec: adjust the `ch_layout` when downmix is active
Applications making use of this codec with the `downmix` option are
segfaulting unless the `ch_layout` is overridden after `avcodec_open2`
as can be seen in projects like MythTV[1]
This patch fixes this by overriding the ch_layout as done in other
decoders such as AC3.
1: https://github.com/MythTV/mythtv/blob/af6f362a140cd59b9ed784a8c639fd456b5f6967/mythtv/libs/libmythtv/decoders/avformatdecoder.cpp#L4607
Signed-off-by: Geoffrey McRae <geoff@hostfission.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'tests/ref/fate/exr-rgba-scanline-float-half-b44-13x9-l1')
0 files changed, 0 insertions, 0 deletions