From b6a971994187e87fcc8811108e144f15c1652728 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 5 Dec 2013 21:06:28 +0100 Subject: dcadec: Decode LFE to avoid adding random data when downmixing with LFE Signed-off-by: Tim Walker Signed-off-by: Luca Barbato --- libavcodec/dcadec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec') diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c index cf76f3f4a4..aa713f3481 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]], -- cgit v1.2.3