diff options
author | Google Chrome <> | 2009-09-23 12:42:12 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-09-23 12:42:12 +0000 |
commit | 310afddfe0c31ffd844eb640bdf2b3f052286dbe (patch) | |
tree | 4585e50c9a4c62e35bfbd278b6ef764b1b7248ad /libavcodec | |
parent | 75bbed517f5365e04197aad11c3a5e43b0c46c71 (diff) | |
download | ffmpeg-310afddfe0c31ffd844eb640bdf2b3f052286dbe.tar.gz |
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
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/vp3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c index 4896fd049f..6a6663ff3b 100644 --- a/libavcodec/vp3.c +++ b/libavcodec/vp3.c @@ -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) { |