projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10e7fc7
)
Fix bug I introduced in r11962.
author
Vitor Sessak
<vitor1001@gmail.com>
Sun, 24 Feb 2008 07:47:02 +0000
(07:47 +0000)
committer
Vitor Sessak
<vitor1001@gmail.com>
Sun, 24 Feb 2008 07:47:02 +0000
(07:47 +0000)
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
patch
|
blob
|
history
diff --git
a/libavcodec/utils.c
b/libavcodec/utils.c
index
c99a4d5
..
f6d2817
100644
(file)
--- 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));