]> granicus.if.org Git - libvpx/commitdiff
Initialization bug for multi arf.
authorPaul Wilkins <paulwilkins@google.com>
Wed, 22 Oct 2014 17:51:07 +0000 (18:51 +0100)
committerPaul Wilkins <paulwilkins@google.com>
Wed, 22 Oct 2014 17:51:07 +0000 (18:51 +0100)
Moved erroneous reset of cpi->multi_arf_last_grp_enabled.

Change-Id: Ibb0b96f6ed1d5eeb575a3b1c798e0fe2ee651d06

vp9/encoder/vp9_encoder.c

index c5e8726073fd061543e7146b4055d83798a50f51..90ba344b3ad7185725dbc6e10e0e225487871dbb 100644 (file)
@@ -1435,6 +1435,7 @@ VP9_COMP *vp9_create_compressor(VP9EncoderConfig *oxcf) {
 #endif
 
   cpi->refresh_alt_ref_frame = 0;
+  cpi->multi_arf_last_grp_enabled = 0;
 
   cpi->b_calculate_psnr = CONFIG_INTERNAL_STATS;
 #if CONFIG_INTERNAL_STATS
@@ -3420,7 +3421,6 @@ int vp9_get_compressed_data(VP9_COMP *cpi, unsigned int *frame_flags,
     cpi->multi_arf_allowed = 1;
   else
     cpi->multi_arf_allowed = 0;
-  cpi->multi_arf_last_grp_enabled = 0;
 
   // Normal defaults
   cm->reset_frame_context = 0;