From ca78dc3cccc92508e640552f31f99213cacc2786 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 10 Dec 2009 19:40:15 +0000 Subject: [PATCH] Correct a forgotten RGB32. Originally committed as revision 20791 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ljpegenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/ljpegenc.c b/libavcodec/ljpegenc.c index 6c9f058dc..566723dbc 100644 --- a/libavcodec/ljpegenc.c +++ b/libavcodec/ljpegenc.c @@ -56,7 +56,7 @@ static int encode_picture_lossless(AVCodecContext *avctx, unsigned char *buf, in s->header_bits= put_bits_count(&s->pb); - if(avctx->pix_fmt == PIX_FMT_RGB32){ + if(avctx->pix_fmt == PIX_FMT_BGRA){ int x, y, i; const int linesize= p->linesize[0]; uint16_t (*buffer)[4]= (void *) s->rd_scratchpad; -- 2.11.0