From f7032713af6271f7aab16165c437b6d89e4e8f52 Mon Sep 17 00:00:00 2001 From: JackyChen Date: Tue, 2 Aug 2016 15:45:44 -0700 Subject: [PATCH] vp9 svc: Fix a valgrind error. This error was introduced by the patch: 8ce67d7 vp9 svc: Enable different speed setting for each spatial layer. To use svc, svc_param should be cleared to 0 at the beginning. Change-Id: I222f03ddae8a50e84b4690b78263abb742fae91e --- examples/vpx_temporal_svc_encoder.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/vpx_temporal_svc_encoder.c b/examples/vpx_temporal_svc_encoder.c index d2e8726b1..633cdf1f5 100644 --- a/examples/vpx_temporal_svc_encoder.c +++ b/examples/vpx_temporal_svc_encoder.c @@ -706,6 +706,7 @@ int main(int argc, char **argv) { vpx_codec_control(&codec, VP8E_SET_STATIC_THRESHOLD, 1); } else if (strncmp(encoder->name, "vp9", 3) == 0) { vpx_svc_extra_cfg_t svc_params; + memset(&svc_params, 0, sizeof(svc_params)); vpx_codec_control(&codec, VP8E_SET_CPUUSED, speed); vpx_codec_control(&codec, VP9E_SET_AQ_MODE, 3); vpx_codec_control(&codec, VP9E_SET_FRAME_PERIODIC_BOOST, 0); -- 2.40.0