OSDN Git Service

avcodec/dcadec: decode LFE so we dont just add random data when downmixing with LFE
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 29 Nov 2013 13:07:34 +0000 (14:07 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 29 Nov 2013 13:13:05 +0000 (14:13 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dcadec.c

index 4153755..16a8317 100644 (file)
@@ -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],