Mercurial > mplayer.hg
comparison libmpdemux/tvi_v4l.c @ 9215:5971342e9302
fix off-by-one error message
author | colin |
---|---|
date | Sun, 02 Feb 2003 02:28:59 +0000 |
parents | 1ebf4c3ab032 |
children | 7c536a513ce9 |
comparison
equal
deleted
inserted
replaced
9214:efa14c62e5e6 | 9215:5971342e9302 |
---|---|
1158 int i; | 1158 int i; |
1159 | 1159 |
1160 if (req_chan >= priv->capability.channels) | 1160 if (req_chan >= priv->capability.channels) |
1161 { | 1161 { |
1162 mp_msg(MSGT_TV, MSGL_ERR, "Invalid input requested: %d, valid: 0-%d\n", | 1162 mp_msg(MSGT_TV, MSGL_ERR, "Invalid input requested: %d, valid: 0-%d\n", |
1163 req_chan, priv->capability.channels); | 1163 req_chan, priv->capability.channels - 1); |
1164 return(TVI_CONTROL_FALSE); | 1164 return(TVI_CONTROL_FALSE); |
1165 } | 1165 } |
1166 | 1166 |
1167 for (i = 0; i < priv->capability.channels; i++) | 1167 for (i = 0; i < priv->capability.channels; i++) |
1168 { | 1168 { |