summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2011-01-21 08:45:52 +0800
committerOwain G. Ainsworth <oga@openbsd.org>2011-03-16 20:12:18 +0000
commitfa34c8182f6b7ba8ff0a5a7c0581c6c02c1ee72f (patch)
tree0907b0192bd78bdc72341eb50812c8ad854e7bd7
parent7bde993726d13bdcba6a9ee473bafb3460a45de4 (diff)
Fix an error in 4c4ad555564a80311df1a4b762eb1e119c6d95fb.
See the original patch at https://bugs.freedesktop.org/show_bug.cgi?id=24767 Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com> (cherry picked from commit 5baa63c634990810a66c3150b4f2b76fcee2df38) Signed-off-by: Owain G. Ainsworth <oga@openbsd.org>
-rw-r--r--src/intel_video.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel_video.c b/src/intel_video.c
index 312e8cc7..895f66e1 100644
--- a/src/intel_video.c
+++ b/src/intel_video.c
@@ -1444,7 +1444,7 @@ I830CopyPlanarData(intel_adaptor_private *adaptor_priv,
/* Copy V data for YV12, or U data for I420 */
src2 = buf + /* start of YUV data */
(srcH * srcPitch) + /* move over Luma plane */
- ((top >> 1) * srcPitch) + /* move down from by top lines */
+ ((top >> 1) * srcPitch2) + /* move down from by top lines */
(left >> 1); /* move left by left pixels */
#if 0
@@ -1463,7 +1463,7 @@ I830CopyPlanarData(intel_adaptor_private *adaptor_priv,
src3 = buf + /* start of YUV data */
(srcH * srcPitch) + /* move over Luma plane */
((srcH >> 1) * srcPitch2) + /* move over Chroma plane */
- ((top >> 1) * srcPitch) + /* move down from by top lines */
+ ((top >> 1) * srcPitch2) + /* move down from by top lines */
(left >> 1); /* move left by left pixels */
#if 0
ErrorF("src3 is %p, offset is %ld\n", src3,