changeset 8323:fa328586b9ce libavcodec

indeo3: replace sizeof(struct ...) by sizeof(*var)
author aurel
date Sun, 14 Dec 2008 16:41:51 +0000
parents 8daa347431a4
children 343f0476fd1d
files indeo3.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/indeo3.c	Sun Dec 14 15:48:01 2008 +0000
+++ b/indeo3.c	Sun Dec 14 16:41:51 2008 +0000
@@ -252,14 +252,14 @@
 
         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);