width of plane 1 is same as width of plane 0 in case of NV12 15/25015/1
authorBoram Park <boram1288.park@samsung.com>
Fri, 25 Jul 2014 09:58:01 +0000 (18:58 +0900)
committerBoram Park <boram1288.park@samsung.com>
Fri, 25 Jul 2014 09:58:06 +0000 (18:58 +0900)
Change-Id: I98a7407754a021649e7c13fdf9c32bbe47f1d65f

src/xv/sec_video.c

index 03c0d66..4d0e3bd 100644 (file)
@@ -2255,7 +2255,7 @@ secVideoQueryImageAttrs (ScrnInfoPtr  pScrn,
             lengths[0] = size;
 
         if (pitches)
-            pitches[1] = *w >> 1;
+            pitches[1] = *w;
 
         tmp = (*w) * (*h >> 1);
         size += tmp;