# HG changeset patch # User reimar # Date 1124048296 0 # Node ID f540609340ac3c298a086d74b40b2bd67810241b # Parent 8683e4609f3fdd3854ca8ecac6fafeaa6c522aa0 extra check for glUploadTex to avoid a possible hang. diff -r 8683e4609f3f -r f540609340ac libvo/gl_common.c --- a/libvo/gl_common.c Sun Aug 14 19:36:34 2005 +0000 +++ b/libvo/gl_common.c Sun Aug 14 19:38:16 2005 +0000 @@ -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