[FFmpeg-cvslog] Add support for QT BMP 1bpp color mode
ami_stuff
git at videolan.org
Thu May 12 15:44:00 CEST 2011
ffmpeg | branch: master | ami_stuff <ami_stuff at o2.pl> | Thu May 12 12:16:43 2011 +0200| [0b8002fd6865f08d100be3c6ddb13efd4b09870d] | committer: Michael Niedermayer
Add support for QT BMP 1bpp color mode
Fix trac issue #188
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0b8002fd6865f08d100be3c6ddb13efd4b09870d
---
libavcodec/msrle.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/libavcodec/msrle.c b/libavcodec/msrle.c
index 6d6a2a3..a5c80ff 100644
--- a/libavcodec/msrle.c
+++ b/libavcodec/msrle.c
@@ -53,6 +53,9 @@ static av_cold int msrle_decode_init(AVCodecContext *avctx)
s->avctx = avctx;
switch (avctx->bits_per_coded_sample) {
+ case 1:
+ avctx->pix_fmt = PIX_FMT_MONOWHITE;
+ break;
case 4:
case 8:
avctx->pix_fmt = PIX_FMT_PAL8;
More information about the ffmpeg-cvslog
mailing list