[FFmpeg-cvslog] r18233 - trunk/libavcodec/mlpdec.c

ramiro subversion
Mon Mar 30 05:08:56 CEST 2009


Author: ramiro
Date: Mon Mar 30 05:08:55 2009
New Revision: 18233

Log:
mlpdec: Simplify &foo[0] to foo and use index (which has just been initialized
to MAX_BLOCKSIZE) instead of MAX_BLOCKSIZE, so both copies to/from state data
look alike.

Modified:
   trunk/libavcodec/mlpdec.c

Modified: trunk/libavcodec/mlpdec.c
==============================================================================
--- trunk/libavcodec/mlpdec.c	Mon Mar 30 05:05:38 2009	(r18232)
+++ trunk/libavcodec/mlpdec.c	Mon Mar 30 05:08:55 2009	(r18233)
@@ -661,9 +661,9 @@ static void filter_channel(MLPDecodeCont
     int index = MAX_BLOCKSIZE;
     int i;
 
-    memcpy(&firbuf[MAX_BLOCKSIZE], &fir->state[0],
+    memcpy(&firbuf[index], fir->state,
             MAX_FIR_ORDER * sizeof(int32_t));
-    memcpy(&iirbuf[MAX_BLOCKSIZE], &iir->state[0],
+    memcpy(&iirbuf[index], iir->state,
             MAX_IIR_ORDER * sizeof(int32_t));
 
     for (i = 0; i < s->blocksize; i++) {
@@ -692,9 +692,9 @@ static void filter_channel(MLPDecodeCont
         m->sample_buffer[i + s->blockpos][channel] = result;
     }
 
-    memcpy(&fir->state[0], &firbuf[index],
+    memcpy(fir->state, &firbuf[index],
             MAX_FIR_ORDER * sizeof(int32_t));
-    memcpy(&iir->state[0], &iirbuf[index],
+    memcpy(iir->state, &iirbuf[index],
             MAX_IIR_ORDER * sizeof(int32_t));
 }
 



More information about the ffmpeg-cvslog mailing list