[FFmpeg-cvslog] avcodec/cscd: Use BGR0 instead of BGRA

Michael Niedermayer git at videolan.org
Thu Sep 10 17:31:06 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Sep 10 16:19:15 2015 +0200| [67fe1a2b61a6d6723b3523c2bf698c6f48e8443a] | committer: Michael Niedermayer

avcodec/cscd: Use BGR0 instead of BGRA

the available BGRA samples contain random trash in the alpha channel

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=67fe1a2b61a6d6723b3523c2bf698c6f48e8443a
---

 libavcodec/cscd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/cscd.c b/libavcodec/cscd.c
index 278093f..9e1dec9 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",



More information about the ffmpeg-cvslog mailing list