OSDN Git Service

indeo3: replace sizeof(struct ...) by sizeof(*var)
authorAurelien Jacobs <aurel@gnuage.org>
Sun, 14 Dec 2008 16:41:51 +0000 (16:41 +0000)
committerAurelien Jacobs <aurel@gnuage.org>
Sun, 14 Dec 2008 16:41:51 +0000 (16:41 +0000)
Originally committed as revision 16128 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/indeo3.c

index 36c21c4..eea27f9 100644 (file)
@@ -252,14 +252,14 @@ static void iv_Decode_Chunk(Indeo3DecodeContext *s,
 
         if(cmd == 0) {
             strip++;
-            memcpy(strip, strip-1, sizeof(struct ustr));
+            memcpy(strip, strip-1, sizeof(*strip));
             strip->split_flag = 1;
             strip->split_direction = 0;
             strip->height = (strip->height > 8 ? ((strip->height+8)>>4)<<3 : 4);
             continue;
         } else if(cmd == 1) {
             strip++;
-            memcpy(strip, strip-1, sizeof(struct ustr));
+            memcpy(strip, strip-1, sizeof(*strip));
             strip->split_flag = 1;
             strip->split_direction = 1;
             strip->width = (strip->width > 8 ? ((strip->width+8)>>4)<<3 : 4);