[FFmpeg-soc] [soc]: r1550 - eac3/eac3dec.c
jbr
subversion at mplayerhq.hu
Thu Dec 13 02:00:41 CET 2007
Author: jbr
Date: Thu Dec 13 02:00:41 2007
New Revision: 1550
Log:
zero unused coefficients in a more type-generic way
Modified:
eac3/eac3dec.c
Modified: eac3/eac3dec.c
==============================================================================
--- eac3/eac3dec.c (original)
+++ eac3/eac3dec.c Thu Dec 13 02:00:41 2007
@@ -326,7 +326,8 @@ static void get_eac3_transform_coeffs_ch
}
memset(s->transform_coeffs[ch]+s->endmant[ch], 0,
- (AC3_MAX_COEFS - s->endmant[ch])*sizeof(float));
+ sizeof(s->transform_coeffs[ch]) -
+ s->endmant[ch] * sizeof(*s->transform_coeffs[ch]));
}
static int parse_bsi(GetBitContext *gbc, EAC3Context *s){
More information about the FFmpeg-soc
mailing list