Mercurial > libavcodec.hg
diff vp3.c @ 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 | d405b8e7461a |
children | 6829e70ef3aa |
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) {