[FFmpeg-soc] [soc]: r1549 - eac3/eac3dec.c

jbr subversion at mplayerhq.hu
Tue Dec 11 05:30:21 CET 2007


Author: jbr
Date: Tue Dec 11 05:30:21 2007
New Revision: 1549

Log:
fix noise in output by properly zeroing unused coefficients

Modified:
   eac3/eac3dec.c

Modified: eac3/eac3dec.c
==============================================================================
--- eac3/eac3dec.c	(original)
+++ eac3/eac3dec.c	Tue Dec 11 05:30:21 2007
@@ -326,7 +326,7 @@ static void get_eac3_transform_coeffs_ch
     }
 
     memset(s->transform_coeffs[ch]+s->endmant[ch], 0,
-            sizeof(s->transform_coeffs[0])-s->endmant[ch]);
+           (AC3_MAX_COEFS - s->endmant[ch])*sizeof(float));
 }
 
 static int parse_bsi(GetBitContext *gbc, EAC3Context *s){



More information about the FFmpeg-soc mailing list