[FFmpeg-devel] [PATCH 7/7] ffmpeg: fix a few unused variables warnings.
Clément Bœsch
ubitux at gmail.com
Thu Sep 1 20:29:00 CEST 2011
On Thu, Sep 01, 2011 at 03:06:15AM +0200, Michael Niedermayer wrote:
> 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 ...)
>
Rebased and applied in a way there is no declaration and statement mixing.
--
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110901/8a9da358/attachment.asc>
More information about the ffmpeg-devel
mailing list