summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorOded Shimon <ods15@ods15.dyndns.org>2008-02-04 10:29:03 +0000
committerOded Shimon <ods15@ods15.dyndns.org>2008-02-04 10:29:03 +0000
commitb19e3983cfb157751301aec87237ea28676665f0 (patch)
tree2d5fd9f1fae941503d3079c26ac1f8f70a223eb4 /libavformat
parent103d74ea5c0cf187eabd1d15247693b6eaf45ba0 (diff)
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
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/nutdec.c2
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){