[FFmpeg-cvslog] avutil/frame: increase padding for frames

Michael Niedermayer git at videolan.org
Sat Dec 28 19:40:11 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Dec 28 19:05:39 2013 +0100| [833501657bed55efb29c731409490dc322bbf2d8] | committer: Michael Niedermayer

avutil/frame: increase padding for frames

This matches what avcodec uses

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=833501657bed55efb29c731409490dc322bbf2d8
---

 libavutil/frame.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/frame.c b/libavutil/frame.c
index 1b44400..75a1c28 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;
 



More information about the ffmpeg-cvslog mailing list