[MPlayer-cvslog] r37130 - trunk/vidix/radeon_vid.c

reimar subversion at mplayerhq.hu
Sun Apr 6 20:13:48 CEST 2014


Author: reimar
Date: Sun Apr  6 20:13:47 2014
New Revision: 37130

Log:
vidix: fix bad shift.

Shifting an int left by 32 is undefined.
Since it's not performance-critical, just do a
64 bit shift instead.

Modified:
   trunk/vidix/radeon_vid.c

Modified: trunk/vidix/radeon_vid.c
==============================================================================
--- trunk/vidix/radeon_vid.c	Sun Apr  6 20:10:31 2014	(r37129)
+++ trunk/vidix/radeon_vid.c	Sun Apr  6 20:13:47 2014	(r37130)
@@ -3394,7 +3394,7 @@ static int set_gr_key( void )
 		besr.graphics_key_clr=0;
 	}
 #ifdef RAGE128
-	besr.graphics_key_msk=(1<<dbpp)-1;
+	besr.graphics_key_msk=(1ull<<dbpp)-1;
 	besr.ckey_cntl = VIDEO_KEY_FN_TRUE|GRAPHIC_KEY_FN_NE|CMP_MIX_AND;
 #else
 	besr.graphics_key_msk=besr.graphics_key_clr;


More information about the MPlayer-cvslog mailing list