summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrice Goglin <brice.goglin@ens-lyon.org>2007-07-19 18:44:27 -0400
committerAlex Deucher <alex@t41p.hsd1.va.comcast.net>2007-07-19 18:44:27 -0400
commit882fe7631586b0a7919f808588a2ea4fb555f7e8 (patch)
tree9b2fdb0725f982715fde732b137eff04f97a182e
parentac9cbaf32176cf144bc694ac879e7c9e2920f762 (diff)
MACH64: avoid crash in Xv code
fixes bug 11054
-rw-r--r--src/atimach64xv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/atimach64xv.c b/src/atimach64xv.c
index 997fa699..67bececf 100644
--- a/src/atimach64xv.c
+++ b/src/atimach64xv.c
@@ -979,6 +979,9 @@ ATIMach64PutImage
if (pATI->ActiveSurface)
return Success;
+ if (DstH < 16)
+ return Success;
+
if (!ATIMach64ClipVideo(pScreenInfo, pATI, ImageID,
SrcX, SrcY, SrcW, SrcH,
DstX, DstY, &DstW, &DstH,