Browse Source

Fix >= vs > check of coded_fragment_list_index.

22_fix_theora_frag_fencepost.patch by chrome

Originally committed as revision 19995 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Google Chrome Michael Niedermayer 16 years ago
parent
commit
310afddfe0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/vp3.c

+ 1
- 1
libavcodec/vp3.c View File

@@ -992,7 +992,7 @@ static int unpack_block_qpis(Vp3DecodeContext *s, GetBitContext *gb)
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) {


Loading…
Cancel
Save