[FFmpeg-devel] [PATCH] ffmpeg: add av_unused to sws_flags variable
Stefano Sabatini
stefano.sabatini-lala
Sat Mar 12 12:57:45 CET 2011
On date Saturday 2011-03-12 11:43:03 +0000, M?ns Rullg?rd encoded:
> Stefano Sabatini <stefano.sabatini-lala at poste.it> writes:
>
> > 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 | 2 +-
> > 1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/ffmpeg.c b/ffmpeg.c
> > index 7f90956..875d594 100644
> > --- a/ffmpeg.c
> > +++ b/ffmpeg.c
> > @@ -245,7 +245,7 @@ static char *forced_key_frames = NULL;
> >
> > static float dts_delta_threshold = 10;
> >
> > -static unsigned int sws_flags = SWS_BICUBIC;
> > +static av_unused unsigned int sws_flags = SWS_BICUBIC;
> >
> > static int64_t timer_start;
>
> Shouldn't it be moved under some appropriate ifdef then?
That's another option, updated.
--
FFmpeg = Fundamentalist & Faithless Mystic Peaceless Evangelical Guide
More information about the ffmpeg-devel
mailing list