From 34aadeaa2c2ae2e84abde3cca0a8b1392b8294ac Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Thu, 19 Jan 2012 23:03:21 +0100 Subject: [PATCH] Simplify PIX_FMT_RGB555LE selection in targa decoder. Suggested by Jean First. --- libavcodec/targa.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavcodec/targa.c b/libavcodec/targa.c index b1bcb97e04..56e02c1b21 100644 --- a/libavcodec/targa.c +++ b/libavcodec/targa.c @@ -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; -- GitLab