From: Marco Date: Fri, 26 May 2017 15:43:32 +0000 (-0700) Subject: vp9: SVC: Fix to condiiton on using source_sad. X-Git-Tag: v1.7.0~434 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=146005a9114278288ca77d2712c4c79e7026eecb;p=libvpx vp9: SVC: Fix to condiiton on using source_sad. Fix the condition on usage of source_sad for temporal layers. FIx allows it to be used for the case of 1 temporal layer. Change-Id: I02b1b0ade67a7889d1b93cee66d27c0951131fc3 --- diff --git a/vp9/encoder/vp9_encoder.c b/vp9/encoder/vp9_encoder.c index a97e6064b..90d5d0355 100644 --- a/vp9/encoder/vp9_encoder.c +++ b/vp9/encoder/vp9_encoder.c @@ -3518,7 +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.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) {