[libav-commits] dcadec: Decode LFE to avoid adding random data when downmixing with LFE

Michael Niedermayer git at libav.org
Sat Dec 7 00:11:15 CET 2013


Module: libav
Branch: master
Commit: b6a971994187e87fcc8811108e144f15c1652728

Author:    Michael Niedermayer <michaelni at gmx.at>
Committer: Luca Barbato <lu_zero at gentoo.org>
Date:      Thu Dec  5 21:06:28 2013 +0100

dcadec: Decode LFE to avoid adding random data when downmixing with LFE

Signed-off-by: Tim Walker <tdskywalker at gmail.com>
Signed-off-by: Luca Barbato <lu_zero at gentoo.org>

---

 libavcodec/dcadec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c
index cf76f3f..aa713f3 100644
--- a/libavcodec/dcadec.c
+++ b/libavcodec/dcadec.c
@@ -1263,7 +1263,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[dca_lfe_index[s->amode]],



More information about the libav-commits mailing list