aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-03-12 11:33:43 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-03-12 11:33:43 +0100
commit1ad542f11f4717a9dee19d46f4da5ce3f6beb449 (patch)
treef48c019d44c10c84257544958e05d030bd7745c2
parent53fd4f559429cc17e6aa78eb90e099947294a86b (diff)
downloadffmpeg-1ad542f11f4717a9dee19d46f4da5ce3f6beb449.tar.gz
get_video_buffer: add vertical padding
Fix memory corruption Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavutil/frame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/frame.c b/libavutil/frame.c
index 95d018932b..ea09bc168a 100644
--- a/libavutil/frame.c
+++ b/libavutil/frame.c
@@ -106,7 +106,7 @@ static int get_video_buffer(AVFrame *frame, int align)
}
for (i = 0; i < 4 && frame->linesize[i]; i++) {
- int h = frame->height;
+ int h = FFALIGN(frame->height, 32);
if (i == 1 || i == 2)
h = -((-h) >> desc->log2_chroma_h);