]> granicus.if.org Git - libvpx/commitdiff
fix: Only do spatial SVC when there are > 1 layers
authorTim Kopp <tkopp@google.com>
Thu, 26 Jun 2014 22:28:08 +0000 (15:28 -0700)
committerTim Kopp <tkopp@google.com>
Fri, 27 Jun 2014 15:56:09 +0000 (08:56 -0700)
Bug introduced in I930dced169c9d53f8044d2754a04332138347409. If
svc.number_temporal_layers == 1 and svc.number_spatial_layers == 1, the system
attempt to do spatial SVC. It no longer does that.

Change-Id: Ie6b130a72b1eea40c547c9a64447e40695f811c5

vp9/encoder/vp9_encoder.c

index 1afbcf6cc6a667400ed196cbec6522f8726ab012..4b5e0c94c3c1d7e45ed576b8dd05156c5bc6eb85 100644 (file)
@@ -2462,7 +2462,8 @@ int vp9_get_compressed_data(VP9_COMP *cpi, unsigned int *frame_flags,
   MV_REFERENCE_FRAME ref_frame;
   int arf_src_index;
   const int is_spatial_svc = cpi->use_svc &&
-                             (cpi->svc.number_temporal_layers == 1);
+                             (cpi->svc.number_temporal_layers == 1) &&
+                             (cpi->svc.number_spatial_layers > 1);
 
   if (!cpi)
     return -1;