From 4aade44c4aea69ca40b926682f84635b1e84b47f Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Tue, 18 Sep 2012 10:45:09 +0200 Subject: [PATCH] targaenc: Use named TGA_RLE constant instead of magic number --- libavcodec/targaenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/targaenc.c b/libavcodec/targaenc.c index a7dce3a9e8..2f22e94785 100644 --- a/libavcodec/targaenc.c +++ b/libavcodec/targaenc.c @@ -144,7 +144,7 @@ static int targa_encode_frame(AVCodecContext *avctx, AVPacket *pkt, /* if that worked well, mark the picture as RLE compressed */ if(datasize >= 0) - pkt->data[2] |= 8; + pkt->data[2] |= TGA_RLE; /* if RLE didn't make it smaller, go back to no compression */ else datasize = targa_encode_normal(out, p, bpp, avctx->width, avctx->height);