Browse Source

targaenc: Use named TGA_RLE constant instead of magic number

tags/n1.0
Bobby Bingham Carl Eugen Hoyos 13 years ago
parent
commit
4aade44c4a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/targaenc.c

+ 1
- 1
libavcodec/targaenc.c View 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);


Loading…
Cancel
Save