From 9340a99588c2bf6209b5c396df15b893c4b576b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Thu, 1 Mar 2007 19:48:40 +0000 Subject: [PATCH] Fix a possible crash on 64 bit systems when the lumSrcPtr or chrSrcPtr does not fit in 32 bits. The SWS_ACCURATE_RND is still broken though. Originally committed as revision 22401 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale --- libswscale/swscale_template.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libswscale/swscale_template.c b/libswscale/swscale_template.c index ae16bc007a..ad46be1273 100644 --- a/libswscale/swscale_template.c +++ b/libswscale/swscale_template.c @@ -3169,6 +3169,7 @@ i--; for(i=0; i> 32; lumMmxFilter[4*i+2]= lumMmxFilter[4*i+3]= ((uint16_t)vLumFilter[dstY*vLumFilterSize + i])*0x10001; @@ -3176,6 +3177,7 @@ i--; for(i=0; i> 32; chrMmxFilter[4*i+2]= chrMmxFilter[4*i+3]= ((uint16_t)vChrFilter[chrDstY*vChrFilterSize + i])*0x10001;