vpxenc: fix compile with --disable-libyuv
authorJames Zern <jzern@google.com>
Sat, 16 Aug 2014 04:00:31 +0000 (21:00 -0700)
committerJames Zern <jzern@google.com>
Sat, 16 Aug 2014 04:00:31 +0000 (21:00 -0700)
Change-Id: I13d975d1f0e598e498798e4f33b06483f3a41130

vpxenc.c

index 7e037a6..b99e61a 100644 (file)
--- a/vpxenc.c
+++ b/vpxenc.c
 #include <stdlib.h>
 #include <string.h>
 
+#if CONFIG_LIBYUV
+#include "third_party/libyuv/include/libyuv/scale.h"
+#endif
+
 #include "vpx/vpx_encoder.h"
 #if CONFIG_DECODERS
 #include "vpx/vpx_decoder.h"
 #endif
 
-#include "third_party/libyuv/include/libyuv/scale.h"
 #include "./args.h"
 #include "./ivfenc.h"
 #include "./tools_common.h"