diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-28 19:05:39 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-12-28 19:10:45 +0100 |
commit | 833501657bed55efb29c731409490dc322bbf2d8 (patch) | |
tree | 8c1190735b9e59a2f9f38deb7855f3bcb6626a85 /libavutil | |
parent | 6ea05ef278b2f99fe87e4dd37900e4f1acc2b050 (diff) | |
download | ffmpeg-833501657bed55efb29c731409490dc322bbf2d8.tar.gz |
avutil/frame: increase padding for frames
This matches what avcodec uses
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/frame.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |