summaryrefslogtreecommitdiff
path: root/src/smi_video.c
diff options
context:
space:
mode:
authorArnaud Patard <apatard@mandriva.com>2008-08-29 19:33:31 -0300
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-08-29 20:10:47 -0300
commit4eee032811d1487df9dcf94708b1bcafc7e63392 (patch)
tree2ed5dbfe80822cf5e268dfd839b79a170953ad07 /src/smi_video.c
parent76c931e149917563485ae6ad2950aa28a531b0d1 (diff)
Correct a problem when handling i420 format.
The problem was that the driver was converting i420->YV12 2 times instead of only once.
Diffstat (limited to 'src/smi_video.c')
-rw-r--r--src/smi_video.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/smi_video.c b/src/smi_video.c
index 0076f43..7d3ffab 100644
--- a/src/smi_video.c
+++ b/src/smi_video.c
@@ -1662,11 +1662,6 @@ SMI_PutImage(
tmp = ((top >> 1) * srcPitch2) + (left >> 2);
offset2 += tmp;
offset3 += tmp;
- if (id == FOURCC_I420) {
- tmp = offset2;
- offset2 = offset3;
- offset3 = tmp;
- }
nLines = ((((y2 + 0xffff) >> 16) + 1) & ~1) - top;
xf86XVCopyYUV12ToPacked(buf + (top * srcPitch) + (left >> 1),
buf + offset2, buf + offset3, dstStart,