[FFmpeg-soc] [soc]: r5606 - in indeo5: ivi_common.c ivi_dsp.c

kostya subversion at mplayerhq.hu
Wed Jan 27 17:23:49 CET 2010


Author: kostya
Date: Wed Jan 27 17:23:49 2010
New Revision: 5606

Log:
use pointer arithmetics instead of array element referencing

Modified:
   indeo5/ivi_common.c
   indeo5/ivi_dsp.c

Modified: indeo5/ivi_common.c
==============================================================================
--- indeo5/ivi_common.c	Wed Jan 27 17:20:40 2010	(r5605)
+++ indeo5/ivi_common.c	Wed Jan 27 17:23:49 2010	(r5606)
@@ -487,8 +487,8 @@ void ff_ivi_process_empty_tile(AVCodecCo
         }
     } else {
         /* copy data from the reference tile into the current one */
-        src = &band->ref_buf[tile->ypos * band->pitch + tile->xpos];
-        dst = &band->buf[tile->ypos * band->pitch + tile->xpos];
+        src = band->ref_buf + tile->ypos * band->pitch + tile->xpos;
+        dst = band->buf     + tile->ypos * band->pitch + tile->xpos;
         for (y = 0; y < tile->height; y++) {
             memcpy(dst, src, tile->width*sizeof(band->buf[0]));
             src += band->pitch;

Modified: indeo5/ivi_dsp.c
==============================================================================
--- indeo5/ivi_dsp.c	Wed Jan 27 17:20:40 2010	(r5605)
+++ indeo5/ivi_dsp.c	Wed Jan 27 17:23:49 2010	(r5606)
@@ -397,7 +397,7 @@ void ff_ivi_put_dc_pixel_8x8(int32_t *in
     int     y;
 
     out[0] = in[0];
-    memset(&out[1], 0, 7*sizeof(out[0]));
+    memset(out + 1, 0, 7*sizeof(out[0]));
     out += pitch;
 
     for (y = 1; y < 8; out += pitch, y++)


More information about the FFmpeg-soc mailing list