diff options
author | Bobby Bingham <uhmmmm@gmail.com> | 2012-09-18 10:45:09 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-09-18 10:45:09 +0200 |
commit | 4aade44c4aea69ca40b926682f84635b1e84b47f (patch) | |
tree | 6fdc683fea49f41d084ebc5974fbe1a03eedfd99 | |
parent | 8e59062597d2d0c5bfc11a0f455a8568e3d2dcbe (diff) | |
download | ffmpeg-4aade44c4aea69ca40b926682f84635b1e84b47f.tar.gz |
targaenc: Use named TGA_RLE constant instead of magic number
-rw-r--r-- | libavcodec/targaenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |