shithub: libvpx

Download patch

ref: 711f0a6f93e4acc4d5768afcd1cb6429fadb51a6
parent: b1fad41aabd4f17b051276bedca8e8744d9d70c9
parent: 1e1f78e34cc243bf2eee30081c97ee2944ee4808
author: Jingning Han <jingning@google.com>
date: Thu Sep 20 23:31:50 EDT 2018

Merge "Sync ref frame writing with decoder"

--- a/vp9/encoder/vp9_bitstream.c
+++ b/vp9/encoder/vp9_bitstream.c
@@ -217,7 +217,8 @@
     }
 
     if (is_compound) {
-      vpx_write(w, mi->ref_frame[0] == GOLDEN_FRAME,
+      const int idx = cm->ref_frame_sign_bias[cm->comp_fixed_ref];
+      vpx_write(w, mi->ref_frame[!idx] == cm->comp_var_ref[1],
                 vp9_get_pred_prob_comp_ref_p(cm, xd));
     } else {
       const int bit0 = mi->ref_frame[0] != LAST_FRAME;