Browse Source

Add support for QT BMP 1bpp color mode

Fix trac issue #188

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.8
ami_stuff Michael Niedermayer 14 years ago
parent
commit
0b8002fd68
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/msrle.c

+ 3
- 0
libavcodec/msrle.c View File

@@ -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;


Loading…
Cancel
Save