diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-02-05 11:50:44 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-02-05 11:50:44 +0000 |
commit | 1ac08937991e1d68f8e9d5c54097fbf1eeb8a152 (patch) | |
tree | a81c86e52fc3662b4fc5f58568b43f0424a81437 /libavformat | |
parent | 092421cf0e44bb4e4700a4e2f3a86fab0038dbda (diff) | |
download | ffmpeg-1ac08937991e1d68f8e9d5c54097fbf1eeb8a152.tar.gz |
Correcting wrong looking stream_id validity check in avidec.
Originally committed as revision 21642 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/avidec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 7a2ee05f95..a825733a0a 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -132,7 +132,7 @@ static int read_braindead_odml_indx(AVFormatContext *s, int frame_num){ 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; |