[FFmpeg-soc] [soc]: r2607 - mlp/mlpdec.c

ramiro subversion at mplayerhq.hu
Tue Jul 1 02:08:01 CEST 2008


Author: ramiro
Date: Tue Jul  1 02:08:01 2008
New Revision: 2607

Log:
Use sizeof() instead of hardcoded MAX_CHANNELS.

Modified:
   mlp/mlpdec.c

Modified: mlp/mlpdec.c
==============================================================================
--- mlp/mlpdec.c	(original)
+++ mlp/mlpdec.c	Tue Jul  1 02:08:01 2008
@@ -769,7 +769,7 @@ static int read_block_data(MLPDecodeCont
     }
 
     memset(&m->bypassed_lsbs[m->blockpos[substr]][0], 0,
-           m->blocksize[substr] * MAX_CHANNELS);
+           m->blocksize[substr] * sizeof(m->bypassed_lsbs[0]));
 
     for (i = 0; i < m->blocksize[substr]; i++) {
         for (mat = 0; mat < m->num_primitive_matrices[substr]; mat++)



More information about the FFmpeg-soc mailing list