buffersrc: fix a typo.

Vertical shift is log2_chroma_h, not log2_chroma_w.
This commit is contained in:
Anton Khirnov 2013-03-18 07:22:58 +01:00
parent c977039e58
commit 6599b087de

View File

@ -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);