shithub: libvpx

Download patch

ref: 1e681d98ac5a9b719052b672d985d59a8b529236
parent: 997db6fc3f67aa499574e362b37adf4b07534ff7
author: James Zern <jzern@google.com>
date: Fri Aug 15 17:00:09 EDT 2014

vpxdec: fix compile with --disable-libyuv

Change-Id: I267103595f28c9d9dce2bc38e6db4e371acc7235

--- a/vpxdec.c
+++ b/vpxdec.c
@@ -15,13 +15,16 @@
 #include <string.h>
 #include <limits.h>
 
+#include "./vpx_config.h"
+
+#if CONFIG_LIBYUV
 #include "third_party/libyuv/include/libyuv/scale.h"
+#endif
 
 #include "./args.h"
 #include "./ivfdec.h"
 
 #define VPX_CODEC_DISABLE_COMPAT 1
-#include "./vpx_config.h"
 #include "vpx/vpx_decoder.h"
 #include "vpx_ports/mem_ops.h"
 #include "vpx_ports/vpx_timer.h"
@@ -123,6 +126,7 @@
 };
 #endif
 
+#if CONFIG_LIBYUV
 static INLINE int vpx_image_scale(vpx_image_t *src, vpx_image_t *dst,
                                   FilterModeEnum mode) {
   assert(src->fmt == VPX_IMG_FMT_I420);
@@ -137,6 +141,7 @@
                    dst->d_w, dst->d_h,
                    mode);
 }
+#endif
 
 void usage_exit() {
   int i;