1
mirror of https://github.com/mpv-player/mpv synced 2025-01-09 01:36:25 +01:00

fix off-by-one error message

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9216 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
colin 2003-02-02 02:28:59 +00:00
parent 79308f285d
commit 79905624ab

View File

@ -1160,7 +1160,7 @@ static int control(priv_t *priv, int cmd, void *arg)
if (req_chan >= priv->capability.channels)
{
mp_msg(MSGT_TV, MSGL_ERR, "Invalid input requested: %d, valid: 0-%d\n",
req_chan, priv->capability.channels);
req_chan, priv->capability.channels - 1);
return(TVI_CONTROL_FALSE);
}