[FFmpeg-cvslog] r25966 - trunk/libavcodec/ac3enc.c

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


Author: jbr
Date: Tue Dec 14 15:51:36 2010
New Revision: 25966

Log:
Use sizeof(array value) instead of sizeof(int16_t).

Modified:
   trunk/libavcodec/ac3enc.c

Modified: trunk/libavcodec/ac3enc.c
==============================================================================
--- trunk/libavcodec/ac3enc.c	Tue Dec 14 15:51:33 2010	(r25965)
+++ trunk/libavcodec/ac3enc.c	Tue Dec 14 15:51:36 2010	(r25966)
@@ -514,8 +514,8 @@ static void bit_alloc_masking(AC3EncodeC
     for (blk = 0; blk < AC3_MAX_BLOCKS; blk++) {
         for (ch = 0; ch < s->channels; ch++) {
             if(exp_strategy[blk][ch] == EXP_REUSE) {
-                memcpy(psd[blk][ch], psd[blk-1][ch], AC3_MAX_COEFS*sizeof(int16_t));
-                memcpy(mask[blk][ch], mask[blk-1][ch], 50*sizeof(int16_t));
+                memcpy(psd[blk][ch],  psd[blk-1][ch],  AC3_MAX_COEFS*sizeof(psd[0][0][0]));
+                memcpy(mask[blk][ch], mask[blk-1][ch], 50*sizeof(mask[0][0][0]));
             } else {
                 ff_ac3_bit_alloc_calc_psd(encoded_exp[blk][ch], 0,
                                           s->nb_coefs[ch],



More information about the ffmpeg-cvslog mailing list