shithub: libvpx

Download patch

ref: f7e767d8ee584aabc2074e425186b219d564cce3
parent: 8477a66fc886b2e00a65f8eb3edaf649ceb5caba
parent: eaa6715b02b3ec63fc3a24e62ac2e36e93298c4b
author: Marco Paniconi <marpan@google.com>
date: Wed May 10 19:51:44 EDT 2017

Merge "vp9: SVC: Fix setting in sample encoder."

--- a/vpx/src/svc_encodeframe.c
+++ b/vpx/src/svc_encodeframe.c
@@ -436,6 +436,10 @@
       si->svc_params.scaling_factor_num[sl] = DEFAULT_SCALE_FACTORS_NUM_2x[sl2];
       si->svc_params.scaling_factor_den[sl] = DEFAULT_SCALE_FACTORS_DEN_2x[sl2];
     }
+    if (svc_ctx->spatial_layers == 1) {
+      si->svc_params.scaling_factor_num[0] = 1;
+      si->svc_params.scaling_factor_den[0] = 1;
+    }
   }
   for (tl = 0; tl < svc_ctx->temporal_layers; ++tl) {
     for (sl = 0; sl < svc_ctx->spatial_layers; ++sl) {