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:
parent
b4634a006c
commit
34aadeaa2c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user