Bugfix in model coef prob experiment
authorDeb Mukherjee <debargha@google.com>
Tue, 26 Mar 2013 14:29:24 +0000 (07:29 -0700)
committerDeb Mukherjee <debargha@google.com>
Tue, 26 Mar 2013 14:30:42 +0000 (07:30 -0700)
Fixes an issue with model based update that got into
the original patch that was merged.

Change-Id: Ie42d3d0aff2e48cd187d96664dbd3e9d6d3ac22f

vp9/decoder/vp9_decodframe.c

index bd91755..16ed9a7 100644 (file)
@@ -1218,7 +1218,7 @@ static void read_coef_probs_common(BOOL_DECODER* const bc,
               if (vp9_read(bc, vp9_coef_update_prob[m])) {
                 *p = read_prob_diff_update(bc, *p);
 #if CONFIG_MODELCOEFPROB && MODEL_BASED_UPDATE
-                if (m == 1)
+                if (m == UNCONSTRAINED_NODES - 1)
                   vp9_get_model_distribution(*p, coef_probs[i][j][k][l], i, j);
 #endif
               }