Correcting wrong looking stream_id validity check in avidec.

Originally committed as revision 21642 to svn://svn.ffmpeg.org/ffmpeg/trunk
release/0.6
Michael Niedermayer 15 years ago
parent 092421cf0e
commit 1ac0893799
  1. 2
      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;

Loading…
Cancel
Save