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
This commit is contained in:
Oded Shimon 2008-02-04 10:29:03 +00:00
parent 103d74ea5c
commit b19e3983cf

View File

@ -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){