shithub: libvpx

Download patch

ref: 0835a35347279f0b4ec67bd5158e4844e9141045
parent: aaf61dfbcab414bfacc3171501be17d191ff8506
author: Sami Pietila <samipietila@google.com>
date: Fri May 31 08:58:31 EDT 2013

Fix inter mode context adaptation.

Change-Id: Ibaa47be878c1cd84d88d7518418d2d8d38224e70

--- a/vp9/common/vp9_entropymode.c
+++ b/vp9/common/vp9_entropymode.c
@@ -205,7 +205,7 @@
   int (*mode_context)[VP9_MVREFS - 1] = pc->fc.vp9_mode_contexts;
 
   for (j = 0; j < INTER_MODE_CONTEXTS; j++) {
-    for (i = 0; i < 4; i++) {
+    for (i = 0; i < VP9_MVREFS - 1; i++) {
       int count = mv_ref_ct[j][i][0] + mv_ref_ct[j][i][1], factor;
 
       count = count > MVREF_COUNT_SAT ? MVREF_COUNT_SAT : count;