mirror of https://github.com/mpv-player/mpv
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:
parent
7b0b8276f8
commit
099887986d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue