mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
get_video_buffer: add vertical padding
Fix memory corruption Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
53fd4f5594
commit
1ad542f11f
@ -106,7 +106,7 @@ static int get_video_buffer(AVFrame *frame, int align)
|
||||
}
|
||||
|
||||
for (i = 0; i < 4 && frame->linesize[i]; i++) {
|
||||
int h = frame->height;
|
||||
int h = FFALIGN(frame->height, 32);
|
||||
if (i == 1 || i == 2)
|
||||
h = -((-h) >> desc->log2_chroma_h);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user