Fix 2108984: configure doesn't use pkg-config to find libswscale.
[synfig.git] / synfig-core / trunk / src / modules / mod_libavcodec / trgt_av.cpp
index e067761..4584409 100644 (file)
@@ -36,8 +36,8 @@
 extern "C"
 {
 #include <avformat.h>
-#ifdef HAVE_LIBSWSCALE
-#      include <ffmpeg/swscale.h>
+#ifdef WITH_LIBSWSCALE
+#      include <swscale.h>
 #endif
 }
 
@@ -392,7 +392,7 @@ public:
                if ( pict && context->pix_fmt != PIX_FMT_RGB24 )
                {
                        //We're using RGBA at the moment, write custom conversion code later (get less accuracy errors)
-#ifdef HAVE_LIBSWSCALE
+#ifdef WITH_LIBSWSCALE
                        struct SwsContext* img_convert_ctx =
                                sws_getContext(context->width, context->height, PIX_FMT_RGB24,
                                        context->width, context->height, context->pix_fmt,