changeset 10249:e56302a77ca9 libavcodec

Fix >= vs > check of coded_fragment_list_index. 22_fix_theora_frag_fencepost.patch by chrome
author michael
date Wed, 23 Sep 2009 12:42:12 +0000
parents 575faff0a524
children 6e01bba7a930
files vp3.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vp3.c	Wed Sep 23 12:29:56 2009 +0000
+++ b/vp3.c	Wed Sep 23 12:42:12 2009 +0000
@@ -992,7 +992,7 @@
                 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) {