diff options
author | JackyChen <jackychen@google.com> | 2016-08-02 15:45:44 -0700 |
---|---|---|
committer | JackyChen <jackychen@google.com> | 2016-08-02 16:16:22 -0700 |
commit | f7032713af6271f7aab16165c437b6d89e4e8f52 (patch) | |
tree | 903d43457e4520b29bdd4a6d9040ba1e299d392e /examples/vpx_temporal_svc_encoder.c | |
parent | 039f9e08f04bc7919c7db4fe4be93a7ac3cc1f84 (diff) | |
download | libvpx-f7032713af6271f7aab16165c437b6d89e4e8f52.tar libvpx-f7032713af6271f7aab16165c437b6d89e4e8f52.tar.gz libvpx-f7032713af6271f7aab16165c437b6d89e4e8f52.tar.bz2 libvpx-f7032713af6271f7aab16165c437b6d89e4e8f52.zip |
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
Diffstat (limited to 'examples/vpx_temporal_svc_encoder.c')
-rw-r--r-- | examples/vpx_temporal_svc_encoder.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |