ref: ad2e3598d29b5f9c032c7e7c88f646e3c8de787d
parent: a6095333a7971066c7eb7e76aae97be15541e618
author: Marco <[email protected]>
date: Mon Apr 17 10:36:11 EDT 2017
vp9: Add key_frame condition to is_reference check for loopfilter. This condiiton is not needed as key_frame should set the refresh of the reference frames, but good to have for clarity in condition. Change-Id: Icf9838e7e4f0ff5cf0a9562ae3b5d6c7e6f78702
--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -2619,8 +2619,8 @@
struct loopfilter *lf = &cm->lf;
const int is_reference_frame =
- (cpi->refresh_last_frame || cpi->refresh_golden_frame ||
- cpi->refresh_alt_ref_frame);
+ (cm->frame_type == KEY_FRAME || cpi->refresh_last_frame ||
+ cpi->refresh_golden_frame || cpi->refresh_alt_ref_frame);
if (xd->lossless) {
lf->filter_level = 0;