[FFmpeg-cvslog] lavf: fix invalid reads in avformat_find_stream_info()

Anton Khirnov git at videolan.org
Thu Jul 14 21:27:29 CEST 2011


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Jul 14 03:08:53 2011 +0200| [e358f7ee90fec591348ca05dff94ebaf4c1a098b] | committer: Anton Khirnov

lavf: fix invalid reads in avformat_find_stream_info()

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e358f7ee90fec591348ca05dff94ebaf4c1a098b
---

 libavformat/utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 71fa955..cc0336a 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -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++;



More information about the ffmpeg-cvslog mailing list