Commit 377415dc authored by michael's avatar michael

Fix >= vs > check of coded_fragment_list_index.

22_fix_theora_frag_fencepost.patch by chrome


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19995 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 499a2fbf
...@@ -992,7 +992,7 @@ static int unpack_block_qpis(Vp3DecodeContext *s, GetBitContext *gb) ...@@ -992,7 +992,7 @@ static int unpack_block_qpis(Vp3DecodeContext *s, GetBitContext *gb)
num_blocks_at_qpi += run_length; num_blocks_at_qpi += run_length;
for (j = 0; j < run_length; i++) { for (j = 0; j < run_length; i++) {
if (i > s->coded_fragment_list_index) if (i >= s->coded_fragment_list_index)
return -1; return -1;
if (s->all_fragments[s->coded_fragment_list[i]].qpi == qpi) { if (s->all_fragments[s->coded_fragment_list[i]].qpi == qpi) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment