1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

Simplify PIX_FMT_RGB555LE selection in targa decoder.

Suggested by Jean First.
This commit is contained in:
Carl Eugen Hoyos 2012-01-19 23:03:21 +01:00
parent b4634a006c
commit 34aadeaa2c

View File

@ -142,8 +142,6 @@ static int decode_frame(AVCodecContext *avctx,
avctx->pix_fmt = ((compr & (~TGA_RLE)) == TGA_BW) ? PIX_FMT_GRAY8 : PIX_FMT_PAL8;
break;
case 15:
avctx->pix_fmt = PIX_FMT_RGB555LE;
break;
case 16:
avctx->pix_fmt = PIX_FMT_RGB555LE;
break;