提交 34aadeaa 编写于 作者: C Carl Eugen Hoyos

Simplify PIX_FMT_RGB555LE selection in targa decoder.

Suggested by Jean First.
上级 b4634a00
...@@ -142,8 +142,6 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -142,8 +142,6 @@ static int decode_frame(AVCodecContext *avctx,
avctx->pix_fmt = ((compr & (~TGA_RLE)) == TGA_BW) ? PIX_FMT_GRAY8 : PIX_FMT_PAL8; avctx->pix_fmt = ((compr & (~TGA_RLE)) == TGA_BW) ? PIX_FMT_GRAY8 : PIX_FMT_PAL8;
break; break;
case 15: case 15:
avctx->pix_fmt = PIX_FMT_RGB555LE;
break;
case 16: case 16:
avctx->pix_fmt = PIX_FMT_RGB555LE; avctx->pix_fmt = PIX_FMT_RGB555LE;
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册