Commit 6599b087 authored by Anton Khirnov's avatar Anton Khirnov

buffersrc: fix a typo.

Vertical shift is log2_chroma_h, not log2_chroma_w.
parent c977039e
......@@ -193,7 +193,7 @@ do { \
}
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