shithub: libvpx

Download patch

ref: 2b2fc812f1a1606039ce041836adf53ac5518703
parent: 2b0ed0842fca7b646f75e67388162903ce8f2ef6
parent: 6ea83fdfcb2f666bc815ea9d4695849750c0c4fd
author: Alex Converse <[email protected]>
date: Fri Feb 27 09:37:48 EST 2015

Merge "Make SVC compatible with external resize."

--- a/vp9/encoder/vp9_svc_layercontext.c
+++ b/vp9/encoder/vp9_svc_layercontext.c
@@ -380,13 +380,14 @@
     }
   }
 
-  if (vp9_set_size_literal(cpi, width, height) != 0)
-    return VPX_CODEC_INVALID_PARAM;
-
   cpi->oxcf.worst_allowed_q = vp9_quantizer_to_qindex(lc->max_q);
   cpi->oxcf.best_allowed_q = vp9_quantizer_to_qindex(lc->min_q);
 
   vp9_change_config(cpi, &cpi->oxcf);
+
+  if (vp9_set_size_literal(cpi, width, height) != 0)
+    return VPX_CODEC_INVALID_PARAM;
+
   vp9_set_high_precision_mv(cpi, 1);
 
   cpi->alt_ref_source = get_layer_context(cpi)->alt_ref_source;