[MPlayer-cvslog] CVS: main/libvo gl_common.c,1.12,1.13

Reimar Döffinger CVS syncmail at mplayerhq.hu
Sun Aug 14 21:38:19 CEST 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv22837

Modified Files:
	gl_common.c 
Log Message:
extra check for glUploadTex to avoid a possible hang.


Index: gl_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/gl_common.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- gl_common.c	14 Aug 2005 19:24:48 -0000	1.12
+++ gl_common.c	14 Aug 2005 19:38:16 -0000	1.13
@@ -330,6 +330,7 @@
                  const char *data, int stride,
                  int x, int y, int w, int h, int slice) {
   int y_max = y + h;
+  if (w <= 0 || h <= 0) return;
   if (slice <= 0)
     slice = h;
   // this is not always correct, but should work for MPlayer




More information about the MPlayer-cvslog mailing list