[Ffmpeg-cvslog] r7608 - trunk/libavcodec/flashsv.c

Diego Biurrun diego
Sun Jan 21 19:08:14 CET 2007


On Sun, Jan 21, 2007 at 06:48:03PM +0100, banan wrote:
> 
> Modified:
>    trunk/libavcodec/flashsv.c
> 
> Log:
> Don't break compilation on systems without zlib.
> 
> --- trunk/libavcodec/flashsv.c	(original)
> +++ trunk/libavcodec/flashsv.c	Sun Jan 21 18:48:03 2007
> @@ -49,6 +49,7 @@
>  
>  #include <stdio.h>
>  #include <stdlib.h>
> +#ifdef CONFIG_ZLIB
>  #include <zlib.h>
>  
>  #include "common.h"
> @@ -257,3 +258,4 @@
>      CODEC_CAP_DR1,
>      .pix_fmts = (enum PixelFormat[]){PIX_FMT_BGR24, -1},
>  };
> +#endif //CONFIG_ZLIB

This is ugly and misleading.  If you depend on zlib, don't compile the
file if zlib is not available, i.e. move this check into the Makefile.

Diego




More information about the ffmpeg-cvslog mailing list