[FFmpeg-devel] [PATCH 3/3] targaenc: Use named TGA_RLE constant instead of magic number

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Sep 18 10:46:37 CEST 2012


Bobby Bingham <uhmmmm <at> gmail.com> writes:

> +++ b/libavcodec/targaenc.c
> @@ -144,7 +144,7 @@ static int targa_encode_frame
> 
>      /* if that worked well, mark the picture as RLE compressed */
>      if(datasize >= 0)
> -        pkt->data[2] |= 8;
> +        pkt->data[2] |= TGA_RLE;

Patch applied.

Thank you, Carl Eugen



More information about the ffmpeg-devel mailing list