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:
6ea05ef
)
avutil/frame: increase padding for frames
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 28 Dec 2013 18:05:39 +0000
(19:05 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 28 Dec 2013 18:10:45 +0000
(19:10 +0100)
This matches what avcodec uses
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
1b44400
..
75a1c28
100644
(file)
--- a/
libavutil/frame.c
+++ b/
libavutil/frame.c
@@
-159,7
+159,7
@@
static int get_video_buffer(AVFrame *frame, int align)
if (i == 1 || i == 2)
h = FF_CEIL_RSHIFT(h, desc->log2_chroma_h);
- frame->buf[i] = av_buffer_alloc(frame->linesize[i] * h + 16);
+ frame->buf[i] = av_buffer_alloc(frame->linesize[i] * h + 16
+ 16/*STRIDE_ALIGN*/ - 1
);
if (!frame->buf[i])
goto fail;