changeset 3012:2214e8b1cb4d libavformat

missing " && j<syncpoint_count" protection in the index parsing, as the spec instructs...
author ods15
date Mon, 04 Feb 2008 10:29:03 +0000
parents 0439b354e005
children 2478b7222c56
files nutdec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/nutdec.c	Mon Feb 04 10:27:32 2008 +0000
+++ b/nutdec.c	Mon Feb 04 10:29:03 2008 +0000
@@ -501,7 +501,7 @@
                 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){