OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be5c5c3
)
avutil/frame: fix video buffer allocation
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 17 Mar 2013 01:18:08 +0000
(
02:18
+0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 17 Mar 2013 01:19:25 +0000
(
02:19
+0100)
The padding was lost during porting from avcodec
Should fix out of array accesses
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/frame.c
patch
|
blob
|
history
diff --git
a/libavutil/frame.c
b/libavutil/frame.c
index
90f7fce
..
a5ddab9
100644
(file)
--- a/
libavutil/frame.c
+++ b/
libavutil/frame.c
@@
-134,7
+134,7
@@
static int get_video_buffer(AVFrame *frame, int align)
if (i == 1 || i == 2)
h = -((-h) >> desc->log2_chroma_h);
- frame->buf[i] = av_buffer_alloc(frame->linesize[i] * h);
+ frame->buf[i] = av_buffer_alloc(frame->linesize[i] * h
+ 16
);
if (!frame->buf[i])
goto fail;