Commit 67fe1a2b authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/cscd: Use BGR0 instead of BGRA

the available BGRA samples contain random trash in the alpha channel
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent aec340c5
......@@ -127,7 +127,7 @@ static av_cold int decode_init(AVCodecContext *avctx) {
switch (avctx->bits_per_coded_sample) {
case 16: avctx->pix_fmt = AV_PIX_FMT_RGB555LE; break;
case 24: avctx->pix_fmt = AV_PIX_FMT_BGR24; break;
case 32: avctx->pix_fmt = AV_PIX_FMT_BGRA; break;
case 32: avctx->pix_fmt = AV_PIX_FMT_BGR0; break;
default:
av_log(avctx, AV_LOG_ERROR,
"CamStudio codec error: invalid depth %i bpp\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment