diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-02-24 07:47:02 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-02-24 07:47:02 +0000 |
commit | cf73e32a5fa7aa202fa8279972b217f56b243548 (patch) | |
tree | 8847a1d3fe8746f1fcf4583d6971386147b02781 /libavcodec/utils.c | |
parent | 10e7fc7ce4c5e1fc3aa37dccd49087af1ad7a227 (diff) | |
download | ffmpeg-cf73e32a5fa7aa202fa8279972b217f56b243548.tar.gz |
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
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |