Mercurial > mplayer.hg
changeset 16223:f540609340ac
extra check for glUploadTex to avoid a possible hang.
author | reimar |
---|---|
date | Sun, 14 Aug 2005 19:38:16 +0000 |
parents | 8683e4609f3f |
children | f18e92e72216 |
files | libvo/gl_common.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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