]> granicus.if.org Git - libvpx/commitdiff
vp9: Use source_sad only on top temporal enhancement layer.
authorMarco <marpan@google.com>
Thu, 25 May 2017 23:29:48 +0000 (16:29 -0700)
committerMarco <marpan@google.com>
Thu, 25 May 2017 23:32:05 +0000 (16:32 -0700)
For 1 pass CBR SVC mode.

Change-Id: Ic026740f9d0ec5eee7c5845be9c5b15884fec48d

vp9/encoder/vp9_encoder.c

index f57f40dbe4cf68ea4be624499e009c60dce9d12a..a97e6064bec6c36e3af283a01fb885b0ad74ed9f 100644 (file)
@@ -3518,6 +3518,7 @@ static void encode_without_recode_loop(VP9_COMP *cpi, size_t *size,
 
   if ((cpi->use_svc &&
        (cpi->svc.spatial_layer_id < cpi->svc.number_spatial_layers - 1 ||
+        cpi->svc.temporal_layer_id != cpi->svc.number_temporal_layers - 1 ||
         cpi->svc.current_superframe < 1)) ||
       cpi->resize_pending || cpi->resize_state || cpi->external_resize ||
       cpi->resize_state != ORIG) {