]> granicus.if.org Git - libvpx/commitdiff
vp10: don't allow comp_inter_inter on keyframes.
authorRonald S. Bultje <rsbultje@gmail.com>
Wed, 21 Oct 2015 13:13:59 +0000 (09:13 -0400)
committerRonald S. Bultje <rsbultje@gmail.com>
Wed, 21 Oct 2015 19:19:11 +0000 (15:19 -0400)
Change-Id: Ibd0e13721a2bb71c532d20b36c42f4cccf5c5de2

vp10/decoder/decodeframe.c
vp10/encoder/encodeframe.c

index fa28e7cf7916aba831a205cdc0d869bbeec3c162..5c95e16bc3d8512d7a414e0fb4a5a51e339e6889 100644 (file)
@@ -47,6 +47,8 @@
 
 static int is_compound_reference_allowed(const VP10_COMMON *cm) {
   int i;
+  if (frame_is_intra_only(cm))
+    return 0;
   for (i = 1; i < REFS_PER_FRAME; ++i)
     if (cm->ref_frame_sign_bias[i + 1] != cm->ref_frame_sign_bias[1])
       return 1;
index e038fe675787417fe1566ae428756d58fbcbe603..f303b01fc5f97cb88c6c0fe5cd2316e0ea58b603 100644 (file)
@@ -2807,6 +2807,8 @@ void vp10_encode_frame(VP10_COMP *cpi) {
       cm->comp_var_ref[0] = LAST_FRAME;
       cm->comp_var_ref[1] = GOLDEN_FRAME;
     }
+  } else {
+    cpi->allow_comp_inter_inter = 0;
   }
 
   if (cpi->sf.frame_parameter_update) {