]> granicus.if.org Git - libvpx/commitdiff
Fix arf_src_offset calculation
authorJingning Han <jingning@google.com>
Fri, 24 Aug 2018 19:54:58 +0000 (12:54 -0700)
committerJingning Han <jingning@google.com>
Fri, 31 Aug 2018 16:27:26 +0000 (16:27 +0000)
The offset should be computed with respect to the current coding
process standing.

Change-Id: I63fc303eb062d5fd68b8d1faa3b4172cdfcce168

vp9/encoder/vp9_firstpass.c

index 876a2fb4fd6dce9319c6914188bb1deacad39d30..38e1d37cc4b2d4a060467ea35399c3d9353340fe 100644 (file)
@@ -2355,7 +2355,7 @@ static void find_arf_order(GF_GROUP *gf_group, int *layer_depth,
   // 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);