You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
buffersrc: fix a typo.
Vertical shift is log2_chroma_h, not log2_chroma_w.
This commit is contained in:
@@ -193,7 +193,7 @@ do { \
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < planes; i++) {
|
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];
|
int plane_size = (frame->height >> v_shift) * frame->linesize[i];
|
||||||
|
|
||||||
WRAP_PLANE(frame->buf[i], frame->data[i], plane_size);
|
WRAP_PLANE(frame->buf[i], frame->data[i], plane_size);
|
||||||
|
Reference in New Issue
Block a user