[FFmpeg-devel] [PATCH 2/3] Remove unused variable, avoiding compiler warning.

Stefano Sabatini stefano.sabatini-lala at poste.it
Sun May 29 15:29:04 CEST 2011


On date Sunday 2011-05-29 15:26:08 +0200, Reimar Döffinger encoded:
> ---
>  libswscale/ppc/swscale_template.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)
> 
> diff --git a/libswscale/ppc/swscale_template.c b/libswscale/ppc/swscale_template.c
> index 20a81e5..27351ad 100644
> --- a/libswscale/ppc/swscale_template.c
> +++ b/libswscale/ppc/swscale_template.c
> @@ -66,8 +66,6 @@ static inline void RENAME(yuv2packedX)(SwsContext *c, const int16_t *lumFilter,
>  
>  static void RENAME(sws_init_swScale)(SwsContext *c)
>  {
> -    enum PixelFormat srcFormat = c->srcFormat;
> -
>      c->yuv2yuvX     = RENAME(yuv2yuvX    );
>      c->yuv2packedX  = RENAME(yuv2packedX );
>  }

This looks fine if the variable is really not used (and no need to send
patches for obviously correct changes IMO).
-- 
FFmpeg = Faithful and Free Meaningless Pacific Epic God


More information about the ffmpeg-devel mailing list