summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-03-25 18:42:51 +0100
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-03-25 18:42:51 +0100
commit4ffc79e7a02c1d52c88148fd046896ceab89aad4 (patch)
treecd2bb4feb7097a92b3e12ee2aa0f17c523c451f2 /ffmpeg.c
parent1c0a472630838c3b32231e646ad44e8afd313a66 (diff)
ffmpeg: include conditionally the sws_flags variable
The variable is not used when libavfilter is enabled. Fix the warning: ffmpeg.c: At top level: ffmpeg.c:242: warning: ‘sws_flags’ defined but not used
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 821a71129b..f471614bd4 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -167,6 +167,8 @@ static int loop_output = AVFMT_NOOUTPUTLOOP;
static int qp_hist = 0;
#if CONFIG_AVFILTER
static char *vfilters = NULL;
+#else
+static unsigned int sws_flags = SWS_BICUBIC;
#endif
static int intra_only = 0;
@@ -239,8 +241,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;