comparison utils.c @ 6390:27a6801cbb27 libavcodec

Fix bug I introduced in r11962. Thanks to Uoti Urpala for spotting it and proposing the fix.
author vitor
date Sun, 24 Feb 2008 07:47:02 +0000
parents c6c5bcca56d9
children 7f9e2b5893fc
comparison
equal deleted inserted replaced
6389:dc8990727103 6390:27a6801cbb27
293 293
294 tmpsize = ff_fill_pointer(&picture, NULL, s->pix_fmt, h); 294 tmpsize = ff_fill_pointer(&picture, NULL, s->pix_fmt, h);
295 295
296 for (i=0; i<3 && picture.data[i+1]; i++) 296 for (i=0; i<3 && picture.data[i+1]; i++)
297 size[i] = picture.data[i+1] - picture.data[i]; 297 size[i] = picture.data[i+1] - picture.data[i];
298 size[i] = tmpsize - size[i]; 298 size[i] = tmpsize - (picture.data[i] - picture.data[0]);
299 299
300 buf->last_pic_num= -256*256*256*64; 300 buf->last_pic_num= -256*256*256*64;
301 memset(buf->base, 0, sizeof(buf->base)); 301 memset(buf->base, 0, sizeof(buf->base));
302 memset(buf->data, 0, sizeof(buf->data)); 302 memset(buf->data, 0, sizeof(buf->data));
303 303