[FFmpeg-devel] [PATCH]Support 32bit sunrast image

Carl Eugen Hoyos cehoyos at ag.or.at
Sun Jan 8 12:01:40 CET 2012


Hi!

Attached patch "fixes" ticket #895, also depends on ticket #869.

I will apply if nobody objects, Carl Eugen
-------------- next part --------------
diff --git a/libavcodec/sunrast.c b/libavcodec/sunrast.c
index c33265d..509df73 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;



More information about the ffmpeg-devel mailing list