shithub: libvpx

Download patch

ref: d6c66d46916c4dfc1da31694409326bf35d82ee0
parent: d78ebb82f54333634fb6a40fad057da3536c4d07
author: James Zern <[email protected]>
date: Tue Feb 2 12:50:42 EST 2016

vp9_encoder.c: protect SNPRINT* macros w/CONFIG check

these are only used with CONFIG_INTERNAL_STATS

Change-Id: Ibbcefbdc1db79d93f75e5865289f9960a8c2358a

--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -1967,11 +1967,14 @@
 
   return cpi;
 }
+
+#if CONFIG_INTERNAL_STATS
 #define SNPRINT(H, T) \
   snprintf((H) + strlen(H), sizeof(H) - strlen(H), (T))
 
 #define SNPRINT2(H, T, V) \
   snprintf((H) + strlen(H), sizeof(H) - strlen(H), (T), (V))
+#endif  // CONFIG_INTERNAL_STATS
 
 void vp9_remove_compressor(VP9_COMP *cpi) {
   VP9_COMMON *cm;