Browse code

avcodec/cscd: Use BGR0 instead of BGRA

the available BGRA samples contain random trash in the alpha channel

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>

Michael Niedermayer authored on 2015/09/10 23:19:15
Showing 1 changed files
... ...
@@ -127,7 +127,7 @@ static av_cold int decode_init(AVCodecContext *avctx) {
127 127
     switch (avctx->bits_per_coded_sample) {
128 128
         case 16: avctx->pix_fmt = AV_PIX_FMT_RGB555LE; break;
129 129
         case 24: avctx->pix_fmt = AV_PIX_FMT_BGR24; break;
130
-        case 32: avctx->pix_fmt = AV_PIX_FMT_BGRA; break;
130
+        case 32: avctx->pix_fmt = AV_PIX_FMT_BGR0; break;
131 131
         default:
132 132
             av_log(avctx, AV_LOG_ERROR,
133 133
                    "CamStudio codec error: invalid depth %i bpp\n",