summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-09-06 22:42:02 +0000
committerattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-09-06 22:42:02 +0000
commit099887986d6932a891c78e184adcfd07cf5b3cd1 (patch)
treea7cb7b2f358e7e33153d46d8a5d8c89cfe7bd1e8 /libvo
parent7b0b8276f8daa534d0f620e22f3b4a0a4969897f (diff)
downloadmpv-099887986d6932a891c78e184adcfd07cf5b3cd1.tar.bz2
mpv-099887986d6932a891c78e184adcfd07cf5b3cd1.tar.xz
catch negative port numbers, just in case
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10831 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_xv.c2
1 files changed, 1 insertions, 1 deletions
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;