[FFmpeg-devel] [PATCH 1/4] avcodec/ac3dec: set ltrt_center_mix and ltrt_surround_mix using the relevant coded values

James Almer jamrial at gmail.com
Thu Dec 26 20:13:03 EET 2024


Signed-off-by: James Almer <jamrial at gmail.com>
---
 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)) {
-- 
2.47.1



More information about the ffmpeg-devel mailing list