shithub: libvpx

Download patch

ref: 5106e4dfa882a9a3edc172434ddd32c5b52a103c
parent: 02410659cd1e637bb6f345508213741b64c81fad
author: hkuang <hkuang@google.com>
date: Mon Aug 18 07:16:15 EDT 2014

Fix a bug in adding frame parallel unit test.

There are two CreateDecoder functions and decode_test_driver is not
calling the right function now. This bug is discovered during really
enable the frame parallel flag inside libvpx. This bug does not affect
any existing unit test though.

Change-Id: Icd9633c4b66d50e422a09c4310ff791082878936

--- a/test/decode_test_driver.cc
+++ b/test/decode_test_driver.cc
@@ -40,7 +40,7 @@
 }
 
 void DecoderTest::RunLoop(CompressedVideoSource *video) {
-  Decoder* const decoder = codec_->CreateDecoder(cfg_, flags_);
+  Decoder* const decoder = codec_->CreateDecoder(cfg_, flags_, 0);
   ASSERT_TRUE(decoder != NULL);
   const char *codec_name = decoder->GetDecoderName();
   const bool is_vp8 = strncmp(kVP8Name, codec_name, sizeof(kVP8Name) - 1) == 0;