]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7655: fix build error when we have PNG but not YUV
authorMichael Jerris <mike@jerris.com>
Mon, 22 Jun 2015 18:36:57 +0000 (14:36 -0400)
committerMichael Jerris <mike@jerris.com>
Mon, 22 Jun 2015 18:36:57 +0000 (14:36 -0400)
src/switch_core_video.c

index 1625a541126e30c488d2f56b4d5df5abf01844ff..7e3a931b2b7866ddb9ffee8425f415af5701f29a 100644 (file)
@@ -1135,6 +1135,10 @@ SWITCH_DECLARE(void) switch_img_patch_hole(switch_image_t *IMG, switch_image_t *
 #define SWITCH_IMG_MAX_WIDTH  1920 * 2
 #define SWITCH_IMG_MAX_HEIGHT 1080 * 2
 
+#if !defined(SWITCH_HAVE_YUV)
+#undef SWITCH_HAVE_PNG
+#endif
+
 #ifdef SWITCH_HAVE_PNG
 // WIP png functions, need furthur tweak/check to make sure it works on all png files and errors are properly detected and reported
 // #define PNG_DEBUG 3