[soc]: r1707 - eac3/eac3dec.c
Author: jbr Date: Sun Dec 30 17:14:31 2007 New Revision: 1707 Log: fix zero-mantissa dithering. properly choose between hebap and bap. Modified: eac3/eac3dec.c Modified: eac3/eac3dec.c ============================================================================== --- eac3/eac3dec.c (original) +++ eac3/eac3dec.c Sun Dec 30 17:14:31 2007 @@ -313,7 +313,7 @@ static void remove_dithering(AC3DecodeCo else end = s->end_freq[ch]; for(i=0; i<end; i++) { - if((aht && !bap[i]) && (!aht && !hebap[i])) + if(aht ? !hebap[i] : !bap[i]) coeffs[i] = 0.0f; } if(s->channel_in_cpl[ch]) { @@ -321,7 +321,7 @@ static void remove_dithering(AC3DecodeCo hebap = s->hebap[CPL_CH]; aht = s->channel_uses_aht[CPL_CH]; for(; i<s->end_freq[CPL_CH]; i++) { - if((aht && !bap[i]) && (!aht && !hebap[i])) + if(aht ? !hebap[i] : !bap[i]) coeffs[i] = 0.0f; } }
participants (1)
-
jbr