Commit 8152451b authored by Michael Niedermayer's avatar Michael Niedermayer

buffersrc: fix w/h error

Found-by: nevcairiel
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 519ebb5e
......@@ -241,7 +241,7 @@ do { \
planes = (desc->flags & PIX_FMT_PLANAR) ? desc->nb_components : 1;
for (i = 0; i < planes; i++) {
int v_shift = (i == 1 || i == 2) ? desc->log2_chroma_w : 0;
int v_shift = (i == 1 || i == 2) ? desc->log2_chroma_h : 0;
int plane_size = (frame->height >> v_shift) * frame->linesize[i];
WRAP_PLANE(frame->buf[i], frame->data[i], plane_size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment