[FFmpeg-soc] [soc]: r1781 - in eac3: ac3dec.c eac3dec.c
jbr
subversion at mplayerhq.hu
Mon Jan 7 00:40:03 CET 2008
Author: jbr
Date: Mon Jan 7 00:40:03 2008
New Revision: 1781
Log:
make sure that the last coupling band stops at the end of the coupling range
Modified:
eac3/ac3dec.c
eac3/eac3dec.c
Modified: eac3/ac3dec.c
==============================================================================
--- eac3/ac3dec.c (original)
+++ eac3/ac3dec.c Mon Jan 7 00:40:03 2008
@@ -818,6 +818,7 @@ static int ac3_parse_audio_block(AC3Deco
s->num_cpl_bands--;
}
}
+ s->cpl_band_struct[s->num_cpl_subbands-1] = 0;
} else {
/* coupling not in use */
for (ch = 1; ch <= fbw_channels; ch++)
Modified: eac3/eac3dec.c
==============================================================================
--- eac3/eac3dec.c (original)
+++ eac3/eac3dec.c Mon Jan 7 00:40:03 2008
@@ -822,7 +822,7 @@ int ff_eac3_parse_audio_block(AC3DecodeC
for (bnd = 0; bnd < s->num_cpl_subbands-1; bnd++)
s->cpl_band_struct[bnd] = ff_eac3_default_cpl_band_struct[bnd+cpl_begin+1];
}
- s->cpl_band_struct[17] = 0;
+ s->cpl_band_struct[s->num_cpl_subbands-1] = 0;
/* calculate number of coupling bands based on band structure */
s->num_cpl_bands = s->num_cpl_subbands;
More information about the FFmpeg-soc
mailing list