]> git.sesse.net Git - ffmpeg/commitdiff
Correct a forgotten RGB32.
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 10 Dec 2009 19:40:15 +0000 (19:40 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 10 Dec 2009 19:40:15 +0000 (19:40 +0000)
Originally committed as revision 20791 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/ljpegenc.c

index 6c9f058dce01f2d1216e0fc90f4be5ab997c51a2..566723dbc00bf1456d7785301d2d665c6932617a 100644 (file)
@@ -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;