]> granicus.if.org Git - libvpx/commitdiff
svc_test: fix two warnings
authorJim Bankoski <jimbankoski@google.com>
Mon, 28 Nov 2016 20:53:39 +0000 (12:53 -0800)
committerJim Bankoski <jimbankoski@google.com>
Mon, 28 Nov 2016 20:53:39 +0000 (12:53 -0800)
Use of possibly uninitialized variable and missing test initializer.

Change-Id: I2192c81c39ef4239cc11a309850c0ee8781ef17e

test/svc_test.cc
vpx/src/svc_encodeframe.c

index 949a820c4f856f7dd7370e9d622e4e7895fb63d5..482d9fffa1dc3a0f704a1d55bdf27079da151d19 100644 (file)
@@ -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);
index 88b1531d8c4c8fd173417a39bd2e0c6e793af72b..c2f80d88515d10d3e2ec14cd4cb82ac48630c503 100644 (file)
@@ -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;