Skip to content
Snippets Groups Projects
Commit 83350165 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avutil/frame: increase padding for frames


This matches what avcodec uses

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 6ea05ef2
No related branches found
No related tags found
No related merge requests found
...@@ -159,7 +159,7 @@ static int get_video_buffer(AVFrame *frame, int align) ...@@ -159,7 +159,7 @@ static int get_video_buffer(AVFrame *frame, int align)
if (i == 1 || i == 2) if (i == 1 || i == 2)
h = FF_CEIL_RSHIFT(h, desc->log2_chroma_h); 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]) if (!frame->buf[i])
goto fail; goto fail;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment