diff options
author | Oded Shimon <ods15@ods15.dyndns.org> | 2008-02-04 10:29:03 +0000 |
---|---|---|
committer | Oded Shimon <ods15@ods15.dyndns.org> | 2008-02-04 10:29:03 +0000 |
commit | b19e3983cfb157751301aec87237ea28676665f0 (patch) | |
tree | 2d5fd9f1fae941503d3079c26ac1f8f70a223eb4 | |
parent | 103d74ea5c0cf187eabd1d15247693b6eaf45ba0 (diff) | |
download | ffmpeg-b19e3983cfb157751301aec87237ea28676665f0.tar.gz |
missing " && j<syncpoint_count" protection in the index parsing, as the
spec instructs...
Originally committed as revision 11852 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/nutdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c index 10f0198092..9ecf3d4a97 100644 --- a/libavformat/nutdec.c +++ b/libavformat/nutdec.c @@ -501,7 +501,7 @@ static int find_and_decode_index(NUTContext *nut){ return -1; } assert(n<=syncpoint_count+1); - for(; j<n; j++){ + for(; j<n && j<syncpoint_count; j++){ if(has_keyframe[j]){ uint64_t B, A= ff_get_v(bc); if(!A){ |