[FFmpeg-cvslog] Support decoding 32bit sunrast images.
Carl Eugen Hoyos
git at videolan.org
Sun Jan 8 20:22:37 CET 2012
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sun Jan 8 20:16:57 2012 +0100| [2f21c5078438665e8d1b0388d3a44067366fbbe2] | committer: Carl Eugen Hoyos
Support decoding 32bit sunrast images.
Fixes ticket #895.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2f21c5078438665e8d1b0388d3a44067366fbbe2
---
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;
More information about the ffmpeg-cvslog
mailing list