mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-18 05:11:09 +00:00
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>
This commit is contained in:
parent
be5c5c399b
commit
f566ac48ce
@ -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…
Reference in New Issue
Block a user