changeset 17776:83159e21a639

stream_id == MAX_STREAMS is invalid, since counting starts with 0.
author reimar
date Wed, 08 Mar 2006 13:26:36 +0000
parents 28c2108f1cfa
children 13b2332c5154
files libmpdemux/demux_real.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_real.c	Wed Mar 08 13:07:36 2006 +0000
+++ b/libmpdemux/demux_real.c	Wed Mar 08 13:26:36 2006 +0000
@@ -162,7 +162,7 @@
     if (verbose<=1)
 	return;
     
-    if (stream_id > MAX_STREAMS)
+    if (stream_id >= MAX_STREAMS)
 	return;
 
     index = priv->index_table[stream_id];