From: JackyChen Date: Tue, 2 Aug 2016 22:45:44 +0000 (-0700) Subject: vp9 svc: Fix a valgrind error. X-Git-Tag: v1.6.1~355^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f7032713af6271f7aab16165c437b6d89e4e8f52;p=libvpx 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 --- 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);