[FFmpeg-cvslog] buffersrc: fix a typo.
Anton Khirnov
git at videolan.org
Wed Mar 20 11:37:58 CET 2013
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Mon Mar 18 07:22:58 2013 +0100| [6599b087de62a5f9f2a8d61a1952d777d1bff804] | committer: Anton Khirnov
buffersrc: fix a typo.
Vertical shift is log2_chroma_h, not log2_chroma_w.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6599b087de62a5f9f2a8d61a1952d777d1bff804
---
libavfilter/buffersrc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c
index 19419e6..2219ba5 100644
--- a/libavfilter/buffersrc.c
+++ b/libavfilter/buffersrc.c
@@ -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);
More information about the ffmpeg-cvslog
mailing list