From 099887986d6932a891c78e184adcfd07cf5b3cd1 Mon Sep 17 00:00:00 2001 From: attila Date: Sat, 6 Sep 2003 22:42:02 +0000 Subject: catch negative port numbers, just in case git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10831 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_xv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c index e4c2208385..d356d9817f 100644 --- a/libvo/vo_xv.c +++ b/libvo/vo_xv.c @@ -623,7 +623,7 @@ static uint32_t preinit(const char *arg) } /* 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; -- cgit v1.2.3