Commit 34aadeaa authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Simplify PIX_FMT_RGB555LE selection in targa decoder.

Suggested by Jean First.
parent 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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment