diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-09-10 16:19:15 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-09-10 16:36:47 +0200 |
commit | 67fe1a2b61a6d6723b3523c2bf698c6f48e8443a (patch) | |
tree | f5403f3f6c34b75102315795977171c51e8d0232 /libavcodec/cscd.c | |
parent | aec340c533293d6230573aaf3fe22a74e5454b99 (diff) | |
download | ffmpeg-67fe1a2b61a6d6723b3523c2bf698c6f48e8443a.tar.gz |
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>
Diffstat (limited to 'libavcodec/cscd.c')
-rw-r--r-- | libavcodec/cscd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cscd.c b/libavcodec/cscd.c index 278093fdb3..9e1dec9d96 100644 --- a/libavcodec/cscd.c +++ b/libavcodec/cscd.c @@ -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", |