From cf73e32a5fa7aa202fa8279972b217f56b243548 Mon Sep 17 00:00:00 2001 From: Vitor Sessak Date: Sun, 24 Feb 2008 07:47:02 +0000 Subject: [PATCH] Fix bug I introduced in r11962. Thanks to Uoti Urpala for spotting it and proposing the fix. Originally committed as revision 12187 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/utils.c b/libavcodec/utils.c index c99a4d5cd2..f6d281755e 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -295,7 +295,7 @@ int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){ 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));