[FFmpeg-cvslog] avcodec/ac3dec: set ltrt_center_mix and ltrt_surround_mix using the relevant coded values
James Almer
git at videolan.org
Tue Dec 31 16:46:20 EET 2024
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Tue Dec 24 00:18:24 2024 -0300| [61519a6e989f28e823bc708db00fd712faa4c94e] | committer: James Almer
avcodec/ac3dec: set ltrt_center_mix and ltrt_surround_mix using the relevant coded values
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=61519a6e989f28e823bc708db00fd712faa4c94e
---
libavcodec/ac3dec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
index 3cc20f32a9..e5b52c577f 100644
--- a/libavcodec/ac3dec.c
+++ b/libavcodec/ac3dec.c
@@ -1609,8 +1609,8 @@ dependent_frame:
s->loro_center_mix_level = gain_levels[s-> center_mix_level];
s->loro_surround_mix_level = gain_levels[s->surround_mix_level];
- s->ltrt_center_mix_level = LEVEL_MINUS_3DB;
- s->ltrt_surround_mix_level = LEVEL_MINUS_3DB;
+ s->ltrt_center_mix_level = gain_levels[s-> center_mix_level_ltrt];
+ s->ltrt_surround_mix_level = gain_levels[s->surround_mix_level_ltrt];
/* set downmixing coefficients if needed */
if (s->channels != s->out_channels && !((s->output_mode & AC3_OUTPUT_LFEON) &&
s->fbw_channels == s->out_channels)) {
More information about the ffmpeg-cvslog
mailing list