Browse Source

avutil/frame: fix video buffer allocation

The padding was lost during porting from avcodec
Should fix out of array accesses

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

+ 1
- 1
libavutil/frame.c View File

@@ -134,7 +134,7 @@ static int get_video_buffer(AVFrame *frame, int align)
if (i == 1 || i == 2)
h = -((-h) >> desc->log2_chroma_h);

frame->buf[i] = av_buffer_alloc(frame->linesize[i] * h);
frame->buf[i] = av_buffer_alloc(frame->linesize[i] * h + 16);
if (!frame->buf[i])
goto fail;



Loading…
Cancel
Save