Commit a56b4d9a authored by michael's avatar michael

Flip red and blue in rct-less lossless jpeg.

Fixes issue1466, and decoding of plain lossless jpeg.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20790 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c031feef
......@@ -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];
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment