From: Jingning Han Date: Fri, 24 Aug 2018 19:54:58 +0000 (-0700) Subject: Fix arf_src_offset calculation X-Git-Tag: v1.8.0~373^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=97e9cbe88bc2bd1a93ca58413f3d475ff8afe5b1;p=libvpx Fix arf_src_offset calculation The offset should be computed with respect to the current coding process standing. Change-Id: I63fc303eb062d5fd68b8d1faa3b4172cdfcce168 --- diff --git a/vp9/encoder/vp9_firstpass.c b/vp9/encoder/vp9_firstpass.c index 876a2fb4f..38e1d37cc 100644 --- a/vp9/encoder/vp9_firstpass.c +++ b/vp9/encoder/vp9_firstpass.c @@ -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);