[FFmpeg-devel] [PATCH 7/7] ffmpeg: fix a few unused variables warnings.

Michael Niedermayer michaelni at gmx.at
Thu Sep 1 03:06:15 CEST 2011


On Thu, Sep 01, 2011 at 03:04:30AM +0200, Michael Niedermayer wrote:
> On Thu, Sep 01, 2011 at 02:30:24AM +0200, Clément Bœsch wrote:
> > ---
> >  ffmpeg.c |    5 ++---
> >  1 files changed, 2 insertions(+), 3 deletions(-)
> > 
> > diff --git a/ffmpeg.c b/ffmpeg.c
> > index e60b38a..d23fe5f 100644
> > --- a/ffmpeg.c
> > +++ b/ffmpeg.c
> > @@ -1077,10 +1077,10 @@ static void do_video_resample(OutputStream *ost,
> >                                AVFrame *in_picture,
> >                                AVFrame **out_picture)
> >  {
> > -    int resample_changed = 0;
> > -    AVCodecContext *dec = ist->st->codec;
> >      *out_picture = in_picture;
> >  #if !CONFIG_AVFILTER
> > +    int resample_changed = 0;
> > +    AVCodecContext *dec = ist->st->codec;
> >      resample_changed = ost->resample_width   != dec->width  ||
> >                         ost->resample_height  != dec->height ||
> >                         ost->resample_pix_fmt != dec->pix_fmt;
> > @@ -1883,7 +1883,6 @@ static void print_sdp(OutputFile *output_files, int n)
> >  static int init_input_stream(int ist_index, OutputStream *output_streams, int nb_output_streams,
> >                               char *error, int error_len)
> >  {
> > -    int i;
> >      InputStream *ist = &input_streams[ist_index];
> >      if (ist->decoding_needed) {
> >          AVCodec *codec = ist->dec;
> 
> LGTM

(that is if we dont care about gcc 2.95 anymore ...)

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The misfortune of the wise is better than the prosperity of the fool.
-- Epicurus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110901/fb81fe39/attachment.asc>


More information about the ffmpeg-devel mailing list