[FFmpeg-devel] [PATCH] Support for TARGA images without RLE compression

Diego Biurrun diego
Thu Oct 1 11:08:53 CEST 2009


On Thu, Oct 01, 2009 at 11:00:22AM +0200, Anne-Laure de Smit wrote:
> 
> --- libavcodec/targaenc.c	(revision 20114)
> +++ libavcodec/targaenc.c	(working copy)
> @@ -76,7 +76,7 @@
>      AVFrame *p = data;
> -    int bpp, picsize, datasize;
> +    int bpp, picsize, datasize=-1;

spaces around operators please

> @@ -120,6 +120,7 @@
>  
>      /* try RLE compression */
> +    if (avctx->coder_type  != FF_CODER_TYPE_RAW)

That's one space too much.

Diego



More information about the ffmpeg-devel mailing list