Fix AV1/ResizeModeTestLarge.ResizeModeTest/14 Before this CL, apply_filtering will be triggered with overlay frame. This will make cpi->source = av1_realloc_and_scale_if_required() happen in the end of denoise_and_encode(). BUG=aomedia:3194 Change-Id: I38a7dd63fd0dc4708931bc01f5707744e914ad16
diff --git a/av1/encoder/encode_strategy.c b/av1/encoder/encode_strategy.c index a01bad6..53cab3c 100644 --- a/av1/encoder/encode_strategy.c +++ b/av1/encoder/encode_strategy.c
@@ -971,6 +971,9 @@ // Decide whether to apply temporal filtering to the source frame. int apply_filtering = av1_is_temporal_filter_on(oxcf) && !is_stat_generation_stage(cpi); + if (update_type != KF_UPDATE && update_type != ARF_UPDATE && !is_second_arf) { + apply_filtering = 0; + } if (apply_filtering) { if (frame_params->frame_type == KEY_FRAME) { // TODO(angiebird): Move the noise level check to av1_tf_info_filtering.