summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_ratectrl.c
diff options
context:
space:
mode:
authorMarco Paniconi <marpan@google.com>2020-06-16 11:41:00 -0700
committerMarco Paniconi <marpan@google.com>2020-06-16 12:31:04 -0700
commit3101666d2a8b5b2e6bff14ffb39db685f1cc98a0 (patch)
tree8a5834edb211fbb2e8401e69b53018083f978474 /vp9/encoder/vp9_ratectrl.c
parent5174eb5b9236a76c24e7bfadd0665d7b765395e1 (diff)
downloadlibvpx-3101666d2a8b5b2e6bff14ffb39db685f1cc98a0.tar
libvpx-3101666d2a8b5b2e6bff14ffb39db685f1cc98a0.tar.gz
libvpx-3101666d2a8b5b2e6bff14ffb39db685f1cc98a0.tar.bz2
libvpx-3101666d2a8b5b2e6bff14ffb39db685f1cc98a0.zip
vp9-svc: Add svc test for denoiser and dynamic resize
This catches the assert/crash fixed in 5174eb5. Also fix to only check for dynamic resize in SVC mode for base temporal layer. Change-Id: Ie6eb7d233cc43eafb1b78cec4aeb94fb4d7fe11a
Diffstat (limited to 'vp9/encoder/vp9_ratectrl.c')
-rw-r--r--vp9/encoder/vp9_ratectrl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vp9/encoder/vp9_ratectrl.c b/vp9/encoder/vp9_ratectrl.c
index 2d03bad4d..2a279d4fc 100644
--- a/vp9/encoder/vp9_ratectrl.c
+++ b/vp9/encoder/vp9_ratectrl.c
@@ -2376,7 +2376,8 @@ void vp9_rc_get_svc_params(VP9_COMP *cpi) {
if (cm->show_frame) update_buffer_level_svc_preencode(cpi);
if (cpi->oxcf.resize_mode == RESIZE_DYNAMIC && svc->single_layer_svc == 1 &&
- svc->spatial_layer_id == svc->first_spatial_layer_to_encode) {
+ svc->spatial_layer_id == svc->first_spatial_layer_to_encode &&
+ svc->temporal_layer_id == 0) {
LAYER_CONTEXT *lc = NULL;
cpi->resize_pending = vp9_resize_one_pass_cbr(cpi);
if (cpi->resize_pending) {