catch negative port numbers, just in case

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10831 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
attila 2003-09-06 22:42:02 +00:00
parent 7b0b8276f8
commit 099887986d
1 changed files with 1 additions and 1 deletions

View File

@ -623,7 +623,7 @@ static uint32_t preinit(const char *arg)
} }
/* check adaptors */ /* 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"); mp_msg(MSGT_VO, MSGL_WARN,"Xv: Invalid port parameter, overriding with port 0\n");
xv_port = 0; xv_port = 0;