From 27b5cc31e660f2edc9800cce498df8db012a08a7 Mon Sep 17 00:00:00 2001 From: Jim Bankoski Date: Mon, 28 Nov 2016 12:53:39 -0800 Subject: [PATCH] svc_test: fix two warnings Use of possibly uninitialized variable and missing test initializer. Change-Id: I2192c81c39ef4239cc11a309850c0ee8781ef17e --- test/svc_test.cc | 2 +- vpx/src/svc_encodeframe.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/svc_test.cc b/test/svc_test.cc index 949a820c4..482d9fffa 100644 --- a/test/svc_test.cc +++ b/test/svc_test.cc @@ -438,7 +438,7 @@ TEST_F(SvcTest, SetAutoAltRefOption) { // Test that decoder can handle an SVC frame as the first frame in a sequence. TEST_F(SvcTest, OnePassEncodeOneFrame) { codec_enc_.g_pass = VPX_RC_ONE_PASS; - vpx_fixed_buf output = { 0 }; + vpx_fixed_buf output = vpx_fixed_buf(); Pass2EncodeNFrames(NULL, 1, 2, &output); DecodeNFrames(&output, 1); FreeBitstreamBuffers(&output, 1); diff --git a/vpx/src/svc_encodeframe.c b/vpx/src/svc_encodeframe.c index 88b1531d8..c2f80d885 100644 --- a/vpx/src/svc_encodeframe.c +++ b/vpx/src/svc_encodeframe.c @@ -201,7 +201,7 @@ static vpx_codec_err_t parse_options(SvcContext *svc_ctx, const char *options) { char *input_string; char *option_name; char *option_value; - char *input_ptr; + char *input_ptr = NULL; SvcInternal_t *const si = get_svc_internal(svc_ctx); vpx_codec_err_t res = VPX_CODEC_OK; int i, alt_ref_enabled = 0; -- 2.50.1