projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35d2e4e
)
lavf: fix invalid reads in avformat_find_stream_info()
author
Anton Khirnov
<anton@khirnov.net>
Thu, 14 Jul 2011 01:08:53 +0000
(
03:08
+0200)
committer
Anton Khirnov
<anton@khirnov.net>
Thu, 14 Jul 2011 01:41:24 +0000
(
03:41
+0200)
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index 71fa95526c20894d4db1893abc5c19ee7d0b7195..cc0336a670042e4da467f9b53dfd19b2179ed704 100644
(file)
--- 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++;