[PATCH] ffmpeg: include conditionally the sws_flags variable
Stefano Sabatini
stefano.sabatini-lala
Sat Mar 12 12:12:38 CET 2011
The variable is not used when libavfilter is enabled.
Fix the warning:
ffmpeg.c: At top level:
ffmpeg.c:248: warning: ?sws_flags? defined but not used
---
ffmpeg.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index 7f90956..502700a 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -173,6 +173,8 @@ static int qp_hist = 0;
#if CONFIG_AVFILTER
static char *vfilters = NULL;
static AVFilterGraph *graph = NULL;
+#else
+static unsigned int sws_flags = SWS_BICUBIC;
#endif
static int intra_only = 0;
@@ -245,8 +247,6 @@ static char *forced_key_frames = NULL;
static float dts_delta_threshold = 10;
-static unsigned int sws_flags = SWS_BICUBIC;
-
static int64_t timer_start;
static uint8_t *audio_buf;
--
1.7.2.3
--cNdxnHkX5QqsyA0e--
More information about the ffmpeg-devel
mailing list