From 153ef3d866646800887928d0d1890ac01625dab1 Mon Sep 17 00:00:00 2001 From: James Zern Date: Thu, 11 Feb 2016 18:52:45 -0800 Subject: [PATCH] vp9_encoder_parms_get_to_decoder: add missing initializers + quiet an unused parameter warning Change-Id: I65f69172febb4e0701d3e440b7e1fb31829cda57 --- test/test_vector_test.cc | 2 +- test/vp9_encoder_parms_get_to_decoder.cc | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test_vector_test.cc b/test/test_vector_test.cc index 6f0cbdf96..f1aa4d7f7 100644 --- a/test/test_vector_test.cc +++ b/test/test_vector_test.cc @@ -103,7 +103,7 @@ TEST_P(TestVectorTest, MD5Match) { const int mode = std::tr1::get(input); libvpx_test::CompressedVideoSource *video = NULL; vpx_codec_flags_t flags = 0; - vpx_codec_dec_cfg_t cfg = {0}; + vpx_codec_dec_cfg_t cfg = vpx_codec_dec_cfg_t(); char str[256]; if (mode == kFrameParallelMode) { diff --git a/test/vp9_encoder_parms_get_to_decoder.cc b/test/vp9_encoder_parms_get_to_decoder.cc index 3ef6022ad..bd8409879 100644 --- a/test/vp9_encoder_parms_get_to_decoder.cc +++ b/test/vp9_encoder_parms_get_to_decoder.cc @@ -45,9 +45,9 @@ struct EncodeParameters { }; const EncodeParameters kVP9EncodeParameterSet[] = { - {0, 0, 0, 1, 0, VPX_CR_STUDIO_RANGE, VPX_CS_BT_601}, - {0, 0, 0, 0, 0, VPX_CR_FULL_RANGE, VPX_CS_BT_709}, - {0, 0, 1, 0, 0, VPX_CR_FULL_RANGE, VPX_CS_BT_2020}, + {0, 0, 0, 1, 0, VPX_CR_STUDIO_RANGE, VPX_CS_BT_601, { 0, 0 }}, + {0, 0, 0, 0, 0, VPX_CR_FULL_RANGE, VPX_CS_BT_709, { 0, 0 }}, + {0, 0, 1, 0, 0, VPX_CR_FULL_RANGE, VPX_CS_BT_2020, { 0, 0 }}, {0, 2, 0, 0, 1, VPX_CR_STUDIO_RANGE, VPX_CS_UNKNOWN, { 640, 480 }}, // TODO(JBB): Test profiles (requires more work). }; @@ -93,7 +93,7 @@ class VpxEncoderParmsGetToDecoder } virtual bool HandleDecodeResult(const vpx_codec_err_t res_dec, - const libvpx_test::VideoSource &video, + const libvpx_test::VideoSource & /*video*/, libvpx_test::Decoder *decoder) { vpx_codec_ctx_t *const vp9_decoder = decoder->GetDecoder(); vpx_codec_alg_priv_t *const priv =