mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-02-04 14:30:55 +08:00
Simplify PIX_FMT_RGB555LE selection in targa decoder.
Suggested by Jean First.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user