Mercurial > libavcodec.hg
changeset 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 | dc8990727103 |
children | 3dc36ec2dcad |
files | utils.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Sat Feb 23 23:30:41 2008 +0000 +++ b/utils.c Sun Feb 24 07:47:02 2008 +0000 @@ -295,7 +295,7 @@ for (i=0; i<3 && picture.data[i+1]; i++) size[i] = picture.data[i+1] - picture.data[i]; - size[i] = tmpsize - size[i]; + size[i] = tmpsize - (picture.data[i] - picture.data[0]); buf->last_pic_num= -256*256*256*64; memset(buf->base, 0, sizeof(buf->base));