Index: source/libvpx/test/decode_test_driver.cc |
=================================================================== |
--- source/libvpx/test/decode_test_driver.cc (revision 282873) |
+++ source/libvpx/test/decode_test_driver.cc (working copy) |
@@ -32,15 +32,15 @@ |
void *user_priv) { |
vpx_codec_err_t res_dec; |
InitOnce(); |
- REGISTER_STATE_CHECK( |
+ API_REGISTER_STATE_CHECK( |
res_dec = vpx_codec_decode(&decoder_, |
cxdata, static_cast<unsigned int>(size), |
user_priv, 0)); |
return res_dec; |
} |
-void DecoderTest::RunLoop(CompressedVideoSource *video) { |
- vpx_codec_dec_cfg_t dec_cfg = {0}; |
+void DecoderTest::RunLoop(CompressedVideoSource *video, |
+ const vpx_codec_dec_cfg_t &dec_cfg) { |
Decoder* const decoder = codec_->CreateDecoder(dec_cfg, 0); |
ASSERT_TRUE(decoder != NULL); |
const char *codec_name = decoder->GetDecoderName(); |
@@ -82,7 +82,12 @@ |
while ((img = dec_iter.Next())) |
DecompressedFrameHook(*img, video->frame_number()); |
} |
- |
delete decoder; |
} |
+ |
+void DecoderTest::RunLoop(CompressedVideoSource *video) { |
+ vpx_codec_dec_cfg_t dec_cfg = {0}; |
+ RunLoop(video, dec_cfg); |
+} |
+ |
} // namespace libvpx_test |