]> granicus.if.org Git - libvpx/commitdiff
Fix build when vp8 is disabled
authorYaowu Xu <yaowu@google.com>
Fri, 20 May 2016 18:33:07 +0000 (11:33 -0700)
committerYaowu Xu <yaowu@google.com>
Fri, 20 May 2016 18:33:07 +0000 (11:33 -0700)
Change-Id: Ie1765f086b10d0f7c4d72961d238dfe0d6056dc2

test/encode_test_driver.cc

index f3c324311e3ccad7f44b5c21065abdee6a57403e..f4c4c4bb7ec71cd47b3e6fbff1ec364f281ef9d6 100644 (file)
@@ -56,10 +56,12 @@ void Encoder::InitEncoder(VideoSource *video) {
 #endif  // !CONFIG_EXT_TILE
     } else
 #endif
-    if (CodecInterface() == &vpx_codec_vp8_cx_algo) {
+    {
 #if CONFIG_VP8_ENCODER
-      ASSERT_EQ(&vpx_codec_vp8_cx_algo, CodecInterface())
-          << "Unknown Codec Interface";
+      if (CodecInterface() == &vpx_codec_vp8_cx_algo) {
+        ASSERT_EQ(&vpx_codec_vp8_cx_algo, CodecInterface())
+            << "Unknown Codec Interface";
+      }
 #endif
     }
   }