]> granicus.if.org Git - libvpx/commitdiff
vp9-svc: Fix to dynamic resize for svc denoising
authorMarco Paniconi <marpan@google.com>
Tue, 16 Jun 2020 02:11:53 +0000 (19:11 -0700)
committerMarco Paniconi <marpan@google.com>
Tue, 16 Jun 2020 02:33:11 +0000 (19:33 -0700)
Fix the logic to allow denoiser reset on resize for SVC mode,
as dynamic resize is allowed for SVC under single_layer mode.

Change-Id: I7776c68dadff2ccbce9b0b4a7f0d12624c2ccf90

vp9/encoder/vp9_encoder.c

index f90aee07259b2a4eb5413d3a693062f05fa3599a..ae7b47b523d609fd19a99c4fa776f8fc40698802 100644 (file)
@@ -3747,7 +3747,7 @@ static void set_frame_size(VP9_COMP *cpi) {
   }
 #endif  // !CONFIG_REALTIME_ONLY
 
-  if (oxcf->pass == 0 && oxcf->rc_mode == VPX_CBR && !cpi->use_svc &&
+  if (oxcf->pass == 0 && oxcf->rc_mode == VPX_CBR &&
       oxcf->resize_mode == RESIZE_DYNAMIC && cpi->resize_pending != 0) {
     oxcf->scaled_frame_width =
         (oxcf->width * cpi->resize_scale_num) / cpi->resize_scale_den;