]> granicus.if.org Git - libvpx/commitdiff
vp9: Add key_frame condition to is_reference check for loopfilter.
authorMarco <marpan@google.com>
Mon, 17 Apr 2017 21:36:11 +0000 (14:36 -0700)
committerMarco <marpan@google.com>
Mon, 17 Apr 2017 22:18:46 +0000 (15:18 -0700)
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

vp9/encoder/vp9_encoder.c

index 7d56232e108508754ee219707ffc61c931d402b3..591a85ee03212b182e973a5cdee6230c7f0e0617 100644 (file)
@@ -2619,8 +2619,8 @@ static void loopfilter_frame(VP9_COMP *cpi, VP9_COMMON *cm) {
   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;