diff ac3dec.c @ 7562:ef456ee01ea2 libavcodec

don't mark the delayed samples for upmixing if they haven't been downmixed
author lorenm
date Wed, 13 Aug 2008 23:30:53 +0000
parents be6d31643128
children 8390efaa0c03
line wrap: on
line diff
--- a/ac3dec.c	Wed Aug 13 23:30:28 2008 +0000
+++ b/ac3dec.c	Wed Aug 13 23:30:53 2008 +0000
@@ -1025,7 +1025,7 @@
             ac3_downmix(s, s->transform_coeffs+1);
         }
 
-        if(!s->downmixed) {
+        if(downmix_output && !s->downmixed) {
             s->downmixed = 1;
             // FIXME delay[] is half the size of the other downmixes
             ac3_downmix(s, s->delay);