ref: 27b5cc31e660f2edc9800cce498df8db012a08a7
parent: d7f1d60c51b47f6d22be919362caad09469a058b
author: Jim Bankoski <[email protected]>
date: Mon Nov 28 07:53:39 EST 2016
svc_test: fix two warnings Use of possibly uninitialized variable and missing test initializer. Change-Id: I2192c81c39ef4239cc11a309850c0ee8781ef17e
--- a/test/svc_test.cc
+++ b/test/svc_test.cc
@@ -438,7 +438,7 @@
// 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);
--- a/vpx/src/svc_encodeframe.c
+++ b/vpx/src/svc_encodeframe.c
@@ -201,7 +201,7 @@
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;