changeset 10830:ca838366710d

catch negative port numbers, just in case
author attila
date Sat, 06 Sep 2003 22:42:02 +0000
parents bcb370c65ae5
children 3f716efeb27a
files libvo/vo_xv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_xv.c	Sat Sep 06 16:33:23 2003 +0000
+++ b/libvo/vo_xv.c	Sat Sep 06 22:42:02 2003 +0000
@@ -623,7 +623,7 @@
     }
 
    /* check adaptors */
-    if(xv_port >= adaptors)
+    if(xv_port >= adaptors || xv_port < 0)
     {
     	mp_msg(MSGT_VO, MSGL_WARN,"Xv: Invalid port parameter, overriding with port 0\n");
     	xv_port = 0;