]> granicus.if.org Git - libvpx/commitdiff
Fix a bug in deciding ref frame context in ext-refs
authorZoe Liu <zoeliu@google.com>
Tue, 23 Aug 2016 00:24:57 +0000 (17:24 -0700)
committerZoe Liu <zoeliu@google.com>
Tue, 30 Aug 2016 17:20:04 +0000 (10:20 -0700)
Change-Id: Ie58b98baa870c5d2a5b7193f8fe4f84fd7ec6c16

vp10/common/pred_common.c

index dc0cd901b3e635a3cd04fe36568ae59bf7a666bf..27819b96f8811023af4bc88ba44ff0566e044387 100644 (file)
@@ -600,7 +600,7 @@ int vp10_get_pred_context_comp_bwdref_p(const VP10_COMMON *cm,
       const MB_MODE_INFO *edge_mbmi = above_intra ? left_mbmi : above_mbmi;
 
       if (!has_second_ref(edge_mbmi))  // single pred (1/3)
-        pred_context = 1 + 2 * (edge_mbmi->ref_frame[1] != cm->comp_bwd_ref[1]);
+        pred_context = 1 + 2 * (edge_mbmi->ref_frame[0] != cm->comp_bwd_ref[1]);
       else  // comp pred (1/3)
         pred_context =
             1 +