diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-03-17 02:18:08 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-03-17 02:19:25 +0100 |
commit | f566ac48ce450b013ffd5547ace48df8c47981c6 (patch) | |
tree | 98d7f73052b64c0ed86508313a367d5a9351b952 | |
parent | be5c5c399bac7e37b6f8e4fc4a51d40e11cb6416 (diff) | |
download | ffmpeg-f566ac48ce450b013ffd5547ace48df8c47981c6.tar.gz |
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>
-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 90f7fce6bf..a5ddab9f05 100644 --- a/libavutil/frame.c +++ b/libavutil/frame.c @@ -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; |