aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorami_stuff <ami_stuff@o2.pl>2011-05-12 12:16:43 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-05-12 14:37:51 +0200
commit0b8002fd6865f08d100be3c6ddb13efd4b09870d (patch)
treeda82b23c54286013e674cfe5ee457801ddc5e4f2
parentb7903ab16b7c17fa09497632a0472ab3157574ed (diff)
downloadffmpeg-0b8002fd6865f08d100be3c6ddb13efd4b09870d.tar.gz
Add support for QT BMP 1bpp color mode
Fix trac issue #188 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/msrle.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/msrle.c b/libavcodec/msrle.c
index 6d6a2a3502..a5c80ff1c0 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;