comparison 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
comparison
equal deleted inserted replaced
7561:be6d31643128 7562:ef456ee01ea2
1023 } else { 1023 } else {
1024 if(downmix_output) { 1024 if(downmix_output) {
1025 ac3_downmix(s, s->transform_coeffs+1); 1025 ac3_downmix(s, s->transform_coeffs+1);
1026 } 1026 }
1027 1027
1028 if(!s->downmixed) { 1028 if(downmix_output && !s->downmixed) {
1029 s->downmixed = 1; 1029 s->downmixed = 1;
1030 // FIXME delay[] is half the size of the other downmixes 1030 // FIXME delay[] is half the size of the other downmixes
1031 ac3_downmix(s, s->delay); 1031 ac3_downmix(s, s->delay);
1032 } 1032 }
1033 1033