From 833501657bed55efb29c731409490dc322bbf2d8 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 28 Dec 2013 19:05:39 +0100 Subject: [PATCH] avutil/frame: increase padding for frames This matches what avcodec uses Signed-off-by: Michael Niedermayer --- libavutil/frame.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/frame.c b/libavutil/frame.c index 1b44400eb9..75a1c28347 100644 --- 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;