Browse Source

avutil/frame: increase padding for frames

This matches what avcodec uses

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Michael Niedermayer 12 years ago
parent
commit
833501657b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavutil/frame.c

+ 1
- 1
libavutil/frame.c View File

@@ -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;



Loading…
Cancel
Save