comparison indeo3.c @ 8323:fa328586b9ce libavcodec

indeo3: replace sizeof(struct ...) by sizeof(*var)
author aurel
date Sun, 14 Dec 2008 16:41:51 +0000
parents e983153e2d72
children 16b978f64d9e
comparison
equal deleted inserted replaced
8322:8daa347431a4 8323:fa328586b9ce
250 bit_pos -= 2; 250 bit_pos -= 2;
251 cmd = (bit_buf >> bit_pos) & 0x03; 251 cmd = (bit_buf >> bit_pos) & 0x03;
252 252
253 if(cmd == 0) { 253 if(cmd == 0) {
254 strip++; 254 strip++;
255 memcpy(strip, strip-1, sizeof(struct ustr)); 255 memcpy(strip, strip-1, sizeof(*strip));
256 strip->split_flag = 1; 256 strip->split_flag = 1;
257 strip->split_direction = 0; 257 strip->split_direction = 0;
258 strip->height = (strip->height > 8 ? ((strip->height+8)>>4)<<3 : 4); 258 strip->height = (strip->height > 8 ? ((strip->height+8)>>4)<<3 : 4);
259 continue; 259 continue;
260 } else if(cmd == 1) { 260 } else if(cmd == 1) {
261 strip++; 261 strip++;
262 memcpy(strip, strip-1, sizeof(struct ustr)); 262 memcpy(strip, strip-1, sizeof(*strip));
263 strip->split_flag = 1; 263 strip->split_flag = 1;
264 strip->split_direction = 1; 264 strip->split_direction = 1;
265 strip->width = (strip->width > 8 ? ((strip->width+8)>>4)<<3 : 4); 265 strip->width = (strip->width > 8 ? ((strip->width+8)>>4)<<3 : 4);
266 continue; 266 continue;
267 } else if(cmd == 2) { 267 } else if(cmd == 2) {