diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-12-10 21:18:57 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-12-10 21:18:57 +0300 |
commit | 3c3c01d949b2291dfaf0bf9d79e511147f8a4ce5 (patch) | |
tree | 58a3bfaa987fe9eae567a511c53d905289a18667 /libavcodec/mjpegdec.c | |
parent | 49b19191bc0e23fea139b79b2c42969bc0c501d9 (diff) |
Flip red and blue in rct-less lossless jpeg.
Fixes issue1466, and decoding of plain lossless jpeg.
Originally committed as revision 20790 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mjpegdec.c')
-rw-r--r-- | libavcodec/mjpegdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index d23c67c5f8..a1839ac124 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -674,9 +674,9 @@ static int ljpeg_decode_rgb_scan(MJpegDecodeContext *s, int predictor, int point } }else{ for(mb_x = 0; mb_x < s->mb_width; mb_x++) { - ptr[4*mb_x+0] = buffer[mb_x][0]; + ptr[4*mb_x+0] = buffer[mb_x][2]; ptr[4*mb_x+1] = buffer[mb_x][1]; - ptr[4*mb_x+2] = buffer[mb_x][2]; + ptr[4*mb_x+2] = buffer[mb_x][0]; } } } |