Browse Source

lavf: fix invalid reads in avformat_find_stream_info()

tags/n0.9
Anton Khirnov 14 years ago
parent
commit
e358f7ee90
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/utils.c

+ 1
- 1
libavformat/utils.c View File

@@ -2389,7 +2389,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
least one frame of codec data, this makes sure the codec initializes
the channel configuration and does not only trust the values from the container.
*/
try_decode_frame(st, pkt, (options && i <= orig_nb_streams )? &options[i] : NULL);
try_decode_frame(st, pkt, (options && i < orig_nb_streams )? &options[i] : NULL);

st->codec_info_nb_frames++;
count++;


Loading…
Cancel
Save