[FFmpeg-cvslog] r25968 - trunk/libavcodec/ac3.c

jbr subversion
Tue Dec 14 15:51:44 CET 2010


Author: jbr
Date: Tue Dec 14 15:51:43 2010
New Revision: 25968

Log:
Use AC3_MAX_COEFS instead of 256 in a couple places in ac3.c

Modified:
   trunk/libavcodec/ac3.c

Modified: trunk/libavcodec/ac3.c
==============================================================================
--- trunk/libavcodec/ac3.c	Tue Dec 14 15:51:40 2010	(r25967)
+++ trunk/libavcodec/ac3.c	Tue Dec 14 15:51:43 2010	(r25968)
@@ -221,7 +221,7 @@ void ff_ac3_bit_alloc_calc_bap(int16_t *
 
     /* special case, if snr offset is -960, set all bap's to zero */
     if (snr_offset == -960) {
-        memset(bap, 0, 256);
+        memset(bap, 0, AC3_MAX_COEFS);
         return;
     }
 
@@ -246,7 +246,7 @@ void ac3_parametric_bit_allocation(AC3Bi
                                    uint8_t *dba_offsets, uint8_t *dba_lengths,
                                    uint8_t *dba_values)
 {
-    int16_t psd[256];   /* scaled exponents */
+    int16_t psd[AC3_MAX_COEFS];           /* scaled exponents */
     int16_t band_psd[AC3_CRITICAL_BANDS]; /* interpolated exponents */
     int16_t mask[AC3_CRITICAL_BANDS];   /* masking value */
 



More information about the ffmpeg-cvslog mailing list