Commit 25c75525 authored by Paul B Mahol's avatar Paul B Mahol

lavc/iff: ilbm: unbreak decoding on big endian

Fixes #2192.
Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 42c6f2a6
...@@ -341,7 +341,7 @@ static av_cold int decode_init(AVCodecContext *avctx) ...@@ -341,7 +341,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
avctx->pix_fmt = AV_PIX_FMT_RGB444; avctx->pix_fmt = AV_PIX_FMT_RGB444;
} else if (avctx->codec_tag != MKTAG('D','E','E','P')) { } else if (avctx->codec_tag != MKTAG('D','E','E','P')) {
if (avctx->bits_per_coded_sample == 24) { if (avctx->bits_per_coded_sample == 24) {
avctx->pix_fmt = AV_PIX_FMT_RGB0; avctx->pix_fmt = AV_PIX_FMT_0BGR32;
} else if (avctx->bits_per_coded_sample == 32) { } else if (avctx->bits_per_coded_sample == 32) {
avctx->pix_fmt = AV_PIX_FMT_BGR32; avctx->pix_fmt = AV_PIX_FMT_BGR32;
} else { } else {
......
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