From 6e7de1144436a6871fdbd7859f3a2ece6e89d9fb Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Fri, 29 Nov 2013 14:07:34 +0100
Subject: [PATCH] avcodec/dcadec: decode LFE so we dont just add random data
 when downmixing with LFE

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
---
 libavcodec/dcadec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c
index 41537558751..16a83171e9e 100644
--- a/libavcodec/dcadec.c
+++ b/libavcodec/dcadec.c
@@ -1422,7 +1422,7 @@ static int dca_filter_channels(DCAContext *s, int block_index)
     }
 
     /* Generate LFE samples for this subsubframe FIXME!!! */
-    if (s->output & DCA_LFE) {
+    if (s->lfe) {
         lfe_interpolation_fir(s, s->lfe, 2 * s->lfe,
                               s->lfe_data + 2 * s->lfe * (block_index + 4),
                               s->samples_chanptr[s->lfe_index],
-- 
GitLab