[FFmpeg-cvslog] r11852 - trunk/libavformat/nutdec.c
ods15
subversion
Mon Feb 4 11:29:03 CET 2008
Author: ods15
Date: Mon Feb 4 11:29:03 2008
New Revision: 11852
Log:
missing " && j<syncpoint_count" protection in the index parsing, as the
spec instructs...
Modified:
trunk/libavformat/nutdec.c
Modified: trunk/libavformat/nutdec.c
==============================================================================
--- trunk/libavformat/nutdec.c (original)
+++ trunk/libavformat/nutdec.c Mon Feb 4 11:29:03 2008
@@ -501,7 +501,7 @@ static int find_and_decode_index(NUTCont
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){
More information about the ffmpeg-cvslog
mailing list