From 2f21c5078438665e8d1b0388d3a44067366fbbe2 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Sun, 8 Jan 2012 20:16:57 +0100 Subject: [PATCH] Support decoding 32bit sunrast images. Fixes ticket #895. --- libavcodec/sunrast.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/sunrast.c b/libavcodec/sunrast.c index c33265dc84..f621cbe5ef 100644 --- a/libavcodec/sunrast.c +++ b/libavcodec/sunrast.c @@ -98,6 +98,9 @@ static int sunrast_decode_frame(AVCodecContext *avctx, void *data, case 24: avctx->pix_fmt = (type == RT_FORMAT_RGB) ? PIX_FMT_RGB24 : PIX_FMT_BGR24; break; + case 32: + avctx->pix_fmt = (type == RT_FORMAT_RGB) ? PIX_FMT_RGB0 : PIX_FMT_BGR0; + break; default: av_log(avctx, AV_LOG_ERROR, "invalid depth\n"); return -1;