Mercurial > libavformat.hg
changeset 5629:4dc2cb60c431 libavformat
Correcting wrong looking stream_id validity check in avidec.
author | michael |
---|---|
date | Fri, 05 Feb 2010 11:50:44 +0000 |
parents | ee642c4e5b5c |
children | ebd8a1cc25e0 |
files | avidec.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/avidec.c Wed Feb 03 23:59:48 2010 +0000 +++ b/avidec.c Fri Feb 05 11:50:44 2010 +0000 @@ -132,7 +132,7 @@ longs_pre_entry,index_type, entries_in_use, chunk_id, base); #endif - if(stream_id > s->nb_streams || stream_id < 0) + if(stream_id >= s->nb_streams || stream_id < 0) return -1; st= s->streams[stream_id]; ast = st->priv_data;