# HG changeset patch # User michael # Date 1260469137 0 # Node ID 26f4a5a07f7ee0faf31b3ecd63c4d747c0710f1a # Parent 7127645ee79155cc1cb8a8751a2259e0f95f89ea Flip red and blue in rct-less lossless jpeg. Fixes issue1466, and decoding of plain lossless jpeg. diff -r 7127645ee791 -r 26f4a5a07f7e mjpegdec.c --- a/mjpegdec.c Thu Dec 10 18:14:26 2009 +0000 +++ b/mjpegdec.c Thu Dec 10 18:18:57 2009 +0000 @@ -674,9 +674,9 @@ } }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]; } } }