shithub: libvpx

Download patch

ref: 97e9cbe88bc2bd1a93ca58413f3d475ff8afe5b1
parent: bffa4a68b010889c01338304e883b6e7156bf5c8
author: Jingning Han <jingning@google.com>
date: Fri Aug 24 08:54:58 EDT 2018

Fix arf_src_offset calculation

The offset should be computed with respect to the current coding
process standing.

Change-Id: I63fc303eb062d5fd68b8d1faa3b4172cdfcce168

--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -2355,7 +2355,7 @@
   // Process ARF frame
   layer_depth[*index_counter] = depth;
   gf_group->update_type[*index_counter] = ARF_UPDATE;
-  gf_group->arf_src_offset[*index_counter] = mid;
+  gf_group->arf_src_offset[*index_counter] = mid - start;
   gf_group->rf_level[*index_counter] = GF_ARF_LOW;
   ++(*index_counter);