diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-12-10 18:14:26 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-12-10 18:14:26 +0000 |
commit | 49b19191bc0e23fea139b79b2c42969bc0c501d9 (patch) | |
tree | 9b3d0ace747fc0a49547c8294d4faa7bc9e343fd /libavcodec/mjpegenc.c | |
parent | e0b176adffbd336c061ca55e40e4baf813cb79a0 (diff) | |
download | ffmpeg-49b19191bc0e23fea139b79b2c42969bc0c501d9.tar.gz |
Lossless jpeg expects and uses BGRA not RGB32 (this probably caused a problem on
big endian)
Originally committed as revision 20789 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mjpegenc.c')
-rw-r--r-- | libavcodec/mjpegenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mjpegenc.c b/libavcodec/mjpegenc.c index d7a85ee96c..129a257d70 100644 --- a/libavcodec/mjpegenc.c +++ b/libavcodec/mjpegenc.c @@ -211,7 +211,7 @@ void ff_mjpeg_encode_picture_header(MpegEncContext *s) } 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 */ |