# HG changeset patch # User reimar # Date 1141824396 0 # Node ID 83159e21a6397c4bc4e707ea165ed52092e9b920 # Parent 28c2108f1cfa2283947c17ed1ddaa0d3002a9eea stream_id == MAX_STREAMS is invalid, since counting starts with 0. diff -r 28c2108f1cfa -r 83159e21a639 libmpdemux/demux_real.c --- 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];