summaryrefslogtreecommitdiffstats
path: root/libvo/vo_xv.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_xv.c')
-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;