From 15379c2bebd94903a7b8f932dc1c56ab5c0212b0 Mon Sep 17 00:00:00 2001
From: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Date: Wed, 28 Jul 2010 08:56:52 +0000
Subject: [PATCH] Require libswscale only if the scale filter is used.

Although with several limitations, lavfi can be compiled and used
without the scale filter.

Originally committed as revision 24570 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavfilter/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavfilter/Makefile b/libavfilter/Makefile
index 6f34ca96dcb..feef16c2e37 100644
--- a/libavfilter/Makefile
+++ b/libavfilter/Makefile
@@ -1,7 +1,8 @@
 include $(SUBDIR)../config.mak
 
 NAME = avfilter
-FFLIBS = avcodec avcore avutil swscale
+FFLIBS = avcodec avcore avutil
+FFLIBS-$(CONFIG_SCALE_FILTER) += swscale
 
 HEADERS = avfilter.h
 
-- 
GitLab