targaenc: Use named TGA_RLE constant instead of magic number
authorBobby Bingham <uhmmmm@gmail.com>
Tue, 18 Sep 2012 08:45:09 +0000 (10:45 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 18 Sep 2012 08:45:09 +0000 (10:45 +0200)
libavcodec/targaenc.c

index a7dce3a..2f22e94 100644 (file)
@@ -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);