Skip to content
Snippets Groups Projects
Commit 1ad542f1 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

get_video_buffer: add vertical padding


Fix memory corruption

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 53fd4f55
No related branches found
No related tags found
No related merge requests found
...@@ -106,7 +106,7 @@ static int get_video_buffer(AVFrame *frame, int align) ...@@ -106,7 +106,7 @@ static int get_video_buffer(AVFrame *frame, int align)
} }
for (i = 0; i < 4 && frame->linesize[i]; i++) { for (i = 0; i < 4 && frame->linesize[i]; i++) {
int h = frame->height; int h = FFALIGN(frame->height, 32);
if (i == 1 || i == 2) if (i == 1 || i == 2)
h = -((-h) >> desc->log2_chroma_h); h = -((-h) >> desc->log2_chroma_h);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment