buffersrc: fix a typo.
Vertical shift is log2_chroma_h, not log2_chroma_w.
This commit is contained in:
parent
c977039e58
commit
6599b087de
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user