[SCM] libav/experimental: Use named constants defined in targa.h.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 17:17:37 UTC 2013
The following commit has been merged in the experimental branch:
commit bbf874f19ba609b9926c9ee312a2576a5171f340
Author: Stefano Sabatini <stefano.sabatini-lala at poste.it>
Date: Wed Oct 13 10:39:47 2010 +0000
Use named constants defined in targa.h.
Originally committed as revision 25465 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/targaenc.c b/libavcodec/targaenc.c
index 1d50326..a179baa 100644
--- a/libavcodec/targaenc.c
+++ b/libavcodec/targaenc.c
@@ -102,15 +102,15 @@ static int targa_encode_frame(AVCodecContext *avctx,
/* TODO: support alpha channel */
switch(avctx->pix_fmt) {
case PIX_FMT_GRAY8:
- outbuf[2] = 3; /* uncompressed grayscale image */
+ outbuf[2] = TGA_BW; /* uncompressed grayscale image */
outbuf[16] = 8; /* bpp */
break;
case PIX_FMT_RGB555LE:
- outbuf[2] = 2; /* uncompresses true-color image */
+ outbuf[2] = TGA_RGB; /* uncompresses true-color image */
outbuf[16] = 16; /* bpp */
break;
case PIX_FMT_BGR24:
- outbuf[2] = 2; /* uncompressed true-color image */
+ outbuf[2] = TGA_RGB; /* uncompressed true-color image */
outbuf[16] = 24; /* bpp */
break;
default:
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list