]> granicus.if.org Git - libvpx/commitdiff
Only allow for cyclic refresh (aq=3 mode) for base layer.
authorMarco <marpan@google.com>
Wed, 19 Nov 2014 23:31:29 +0000 (15:31 -0800)
committerMarco <marpan@google.com>
Fri, 21 Nov 2014 22:47:32 +0000 (14:47 -0800)
Condition existed for temporal case, added it for spatial as well.
Issue: https://code.google.com/p/webm/issues/detail?id=878.

Change-Id: I38339207f9a94924f5568a081eabe64f867a686d

vp9/encoder/vp9_aq_cyclicrefresh.c

index 1f8641e20e811bec4af2b4b00565bfb0815cbf36..3806cf88821d6d900bfb4314d38b8d1531573338 100644 (file)
@@ -184,7 +184,8 @@ void vp9_cyclic_refresh_setup(VP9_COMP *const cpi) {
   // Don't apply refresh on key frame or enhancement layer frames.
   if (!apply_cyclic_refresh ||
       (cm->frame_type == KEY_FRAME) ||
-      (cpi->svc.temporal_layer_id > 0)) {
+      (cpi->svc.temporal_layer_id > 0) ||
+      (cpi->svc.spatial_layer_id > 0)) {
     // Set segmentation map to 0 and disable.
     vpx_memset(seg_map, 0, cm->mi_rows * cm->mi_cols);
     vp9_disable_segmentation(&cm->seg);