[Mplayer-cvslog] CVS: main/libmpdemux tvi_v4l.c,1.52,1.53

Colin Leroy CVS colin at mplayerhq.hu
Sun Feb 2 03:29:02 CET 2003


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv4716/libmpdemux

Modified Files:
	tvi_v4l.c 
Log Message:
fix off-by-one error message


Index: tvi_v4l.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/tvi_v4l.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -r1.52 -r1.53
--- tvi_v4l.c	14 Jan 2003 18:20:17 -0000	1.52
+++ tvi_v4l.c	2 Feb 2003 02:28:59 -0000	1.53
@@ -1160,7 +1160,7 @@
 	    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);
 	    }
 



More information about the MPlayer-cvslog mailing list