diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-01-08 20:16:57 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-01-08 20:16:57 +0100 |
commit | 2f21c5078438665e8d1b0388d3a44067366fbbe2 (patch) | |
tree | f4c7c05dacd2eb21a71dbca1157175c7188f8811 /libavcodec | |
parent | ca324f9869bc70650da22c882e762da6f573fb0b (diff) | |
download | ffmpeg-streaming-2f21c5078438665e8d1b0388d3a44067366fbbe2.zip ffmpeg-streaming-2f21c5078438665e8d1b0388d3a44067366fbbe2.tar.gz |
Support decoding 32bit sunrast images.
Fixes ticket #895.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/sunrast.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/sunrast.c b/libavcodec/sunrast.c index c33265d..f621cbe 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; |