]> git.sesse.net Git - ffmpeg/commitdiff
buffersrc: fix a typo.
authorAnton Khirnov <anton@khirnov.net>
Mon, 18 Mar 2013 06:22:58 +0000 (07:22 +0100)
committerAnton Khirnov <anton@khirnov.net>
Tue, 19 Mar 2013 10:12:17 +0000 (11:12 +0100)
Vertical shift is log2_chroma_h, not log2_chroma_w.

libavfilter/buffersrc.c

index 19419e6d25194f9f7d53d1f163342778e2d45e09..2219ba5f816d06de15c095c030b974b4ce8596f6 100644 (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);