[Mplayer-cvslog] CVS: main/libvo vo_tdfxfb.c,1.15,1.16

Alex Beregszaszi alex at mplayerhq.hu
Wed Aug 28 20:38:59 CEST 2002


Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv30618

Modified Files:
	vo_tdfxfb.c 
Log Message:
fixed possible 'DoS' bug

Index: vo_tdfxfb.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_tdfxfb.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- vo_tdfxfb.c	28 Aug 2002 16:22:02 -0000	1.15
+++ vo_tdfxfb.c	28 Aug 2002 18:38:41 -0000	1.16
@@ -158,9 +158,9 @@
      A printf before the memset call also seems to work, but this made more sense
      since it actually checks the status of the card. 
   */
-  do {
-    memset(vidpage, 0, screenwidth * screenheight * screendepth);
-  } while((reg_IO->status & 0x1f) < 1);
+  /* first wait for the card to be ready, do not try to write every time - alex */
+  do {} while((reg_IO->status & 0x1f) < 1);
+  memset(vidpage, 0, screenwidth * screenheight * screendepth);
   
   	if(vo_doublebuffering) {
 		memset(hidpage, 0, screenwidth * screenheight * screendepth);




More information about the MPlayer-cvslog mailing list