diff mjpegenc.c @ 10666:7127645ee791 libavcodec

Lossless jpeg expects and uses BGRA not RGB32 (this probably caused a problem on big endian)
author michael
date Thu, 10 Dec 2009 18:14:26 +0000
parents bf04c3ecdfe5
children 8a4984c5cacc
line wrap: on
line diff
--- a/mjpegenc.c	Thu Dec 10 18:07:35 2009 +0000
+++ b/mjpegenc.c	Thu Dec 10 18:14:26 2009 +0000
@@ -211,7 +211,7 @@
     }
 
     put_bits(&s->pb, 16, 17);
-    if(lossless && s->avctx->pix_fmt == PIX_FMT_RGB32)
+    if(lossless && s->avctx->pix_fmt == PIX_FMT_BGRA)
         put_bits(&s->pb, 8, 9); /* 9 bits/component RCT */
     else
         put_bits(&s->pb, 8, 8); /* 8 bits/component */