From 6ea83fdfcb2f666bc815ea9d4695849750c0c4fd Mon Sep 17 00:00:00 2001 From: Alex Converse Date: Wed, 25 Feb 2015 14:05:51 -0800 Subject: [PATCH] Make SVC compatible with external resize. Fixes https://code.google.com/p/webm/issues/detail?id=943 Change-Id: I6177bf6ab6b31a22d2652732f579b8aed3f28887 --- vp9/encoder/vp9_svc_layercontext.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/vp9/encoder/vp9_svc_layercontext.c b/vp9/encoder/vp9_svc_layercontext.c index 82bce37..161b5a2 100644 --- a/vp9/encoder/vp9_svc_layercontext.c +++ b/vp9/encoder/vp9_svc_layercontext.c @@ -380,13 +380,14 @@ int vp9_svc_start_frame(VP9_COMP *const cpi) { } } - 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; -- 2.7.4