[FFmpeg-cvslog] r19995 - trunk/libavcodec/vp3.c

michael subversion
Wed Sep 23 14:42:13 CEST 2009


Author: michael
Date: Wed Sep 23 14:42:12 2009
New Revision: 19995

Log:
Fix >= vs > check of coded_fragment_list_index.
22_fix_theora_frag_fencepost.patch by chrome

Modified:
   trunk/libavcodec/vp3.c

Modified: trunk/libavcodec/vp3.c
==============================================================================
--- trunk/libavcodec/vp3.c	Wed Sep 23 14:29:56 2009	(r19994)
+++ trunk/libavcodec/vp3.c	Wed Sep 23 14:42:12 2009	(r19995)
@@ -992,7 +992,7 @@ static int unpack_block_qpis(Vp3DecodeCo
                 num_blocks_at_qpi += run_length;
 
             for (j = 0; j < run_length; i++) {
-                if (i > s->coded_fragment_list_index)
+                if (i >= s->coded_fragment_list_index)
                     return -1;
 
                 if (s->all_fragments[s->coded_fragment_list[i]].qpi == qpi) {



More information about the ffmpeg-cvslog mailing list