summaryrefslogtreecommitdiff
path: root/vp8
diff options
context:
space:
mode:
authorYaowu Xu <yaowu@google.com>2012-02-01 14:49:10 -0800
committerYaowu Xu <yaowu@google.com>2012-02-01 14:56:14 -0800
commit27cca3dd94dfd0a5d68646612c071f18dd5549c2 (patch)
treec6056daa7ae192f37d98adea9bf3e220ccefab1e /vp8
parentd24de592a617ae258734922d39d70129fac6cae0 (diff)
downloadlibvpx-27cca3dd94dfd0a5d68646612c071f18dd5549c2.tar
libvpx-27cca3dd94dfd0a5d68646612c071f18dd5549c2.tar.gz
libvpx-27cca3dd94dfd0a5d68646612c071f18dd5549c2.tar.bz2
libvpx-27cca3dd94dfd0a5d68646612c071f18dd5549c2.zip
Fixes a decoder bug
The bug was introduced by the commit that added I8X8 intra prediction mode for inter frames, the decoder was not update to accept the additional probability update from encoder. This causes the decoder typicall to crash when encoder sends intra mode probability update. Change-Id: Ib7dc42dc77a51178aa9ece41e081829818a25016
Diffstat (limited to 'vp8')
-rw-r--r--vp8/decoder/decodemv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vp8/decoder/decodemv.c b/vp8/decoder/decodemv.c
index 5e00922e4..73a20a2f0 100644
--- a/vp8/decoder/decodemv.c
+++ b/vp8/decoder/decodemv.c
@@ -490,7 +490,7 @@ static void mb_mode_mv_init(VP8D_COMP *pbi)
{
cm->fc.ymode_prob[i] = (vp8_prob) vp8_read_literal(bc, 8);
}
- while (++i < 4);
+ while (++i < VP8_YMODES-1);
}
#if CONFIG_UVINTRA
//vp8_read_bit(bc);
@@ -503,7 +503,7 @@ static void mb_mode_mv_init(VP8D_COMP *pbi)
{
cm->fc.uv_mode_prob[i] = (vp8_prob) vp8_read_literal(bc, 8);
}
- while (++i < 3);
+ while (++i < VP8_UV_MODES-1);
}
#endif /* CONFIG_UVINTRA */
read_mvcontexts(bc, mvc);