[FFmpeg-soc] [soc]: r3552 - eac3/ac3dec.c
jbr
subversion at mplayerhq.hu
Sat Aug 23 04:26:13 CEST 2008
Author: jbr
Date: Sat Aug 23 04:26:12 2008
New Revision: 3552
Log:
use memcpy instead of loop to copy default coupling band structure
Modified:
eac3/ac3dec.c
Modified: eac3/ac3dec.c
==============================================================================
--- eac3/ac3dec.c (original)
+++ eac3/ac3dec.c Sat Aug 23 04:26:12 2008
@@ -822,9 +822,9 @@ static int decode_audio_block(AC3DecodeC
s->cpl_band_struct[bnd] = get_bits1(gbc);
}
} else if (!blk) {
- for (bnd = 0; bnd < s->num_cpl_subbands - 1; bnd++) {
- s->cpl_band_struct[bnd] = ff_eac3_default_cpl_band_struct[bnd+cpl_begin_freq+1];
- }
+ memcpy(s->cpl_band_struct,
+ &ff_eac3_default_cpl_band_struct[cpl_begin_freq],
+ sizeof(int)*(s->num_cpl_subbands-1));
}
s->cpl_band_struct[s->num_cpl_subbands-1] = 0;
More information about the FFmpeg-soc
mailing list