[FFmpeg-cvslog] avcodec/tta: fix regression with new channel layout switch
Paul B Mahol
git at videolan.org
Sat Feb 11 17:50:46 EET 2023
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Feb 11 16:48:11 2023 +0100| [27315dc3459431b6ae158db8d27c0d58307c48b9] | committer: Paul B Mahol
avcodec/tta: fix regression with new channel layout switch
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=27315dc3459431b6ae158db8d27c0d58307c48b9
---
libavcodec/tta.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/tta.c b/libavcodec/tta.c
index e63d08bb44..3e89571f16 100644
--- a/libavcodec/tta.c
+++ b/libavcodec/tta.c
@@ -160,7 +160,8 @@ static av_cold int tta_decode_init(AVCodecContext * avctx)
av_channel_layout_uninit(&avctx->ch_layout);
if (s->channels > 1 && s->channels < 9) {
av_channel_layout_from_mask(&avctx->ch_layout, tta_channel_layouts[s->channels-2]);
- } else {
+ }
+ if (avctx->ch_layout.nb_channels == 0) {
avctx->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC;
avctx->ch_layout.nb_channels = s->channels;
}
More information about the ffmpeg-cvslog
mailing list