[FFmpeg-devel] [PATCH] fix unused variable warning in libswscale

Reinhard Tartler siretart
Tue Nov 4 09:18:03 CET 2008


Diego Biurrun <diego at biurrun.de> writes:

> Here is a small patch to eliminate an unused variable warning.
>
> Diego
> Index: libswscale/swscale_template.c
> ===================================================================
> --- libswscale/swscale_template.c	(revision 27889)
> +++ libswscale/swscale_template.c	(working copy)
> @@ -1826,11 +1826,12 @@
>  
>  static inline void RENAME(rgb24ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, long width, uint32_t *unused)
>  {
> +#ifdef HAVE_MMX
> +    assert(src1==src2);
> +    RENAME(bgr24ToUV_mmx)(dstU, dstV, src1, width, PIX_FMT_RGB24);
> +#elif
>      int i;
>      assert(src1==src2);
> -#ifdef HAVE_MMX
> -    RENAME(bgr24ToUV_mmx)(dstU, dstV, src1, width, PIX_FMT_RGB24);
> -#else

are you sure with the double assert? Are you checking that src1 is still
equal to src2 after RENAME?

-- 
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4





More information about the ffmpeg-devel mailing list