Commit e1c59d41 authored by ods15's avatar ods15

missing " && j<syncpoint_count" protection in the index parsing, as the

spec instructs...


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11852 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2c5944a9
...@@ -501,7 +501,7 @@ static int find_and_decode_index(NUTContext *nut){ ...@@ -501,7 +501,7 @@ static int find_and_decode_index(NUTContext *nut){
return -1; return -1;
} }
assert(n<=syncpoint_count+1); assert(n<=syncpoint_count+1);
for(; j<n; j++){ for(; j<n && j<syncpoint_count; j++){
if(has_keyframe[j]){ if(has_keyframe[j]){
uint64_t B, A= ff_get_v(bc); uint64_t B, A= ff_get_v(bc);
if(!A){ if(!A){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment