Mercurial > libavcodec.hg
changeset 10667:26f4a5a07f7e libavcodec
Flip red and blue in rct-less lossless jpeg.
Fixes issue1466, and decoding of plain lossless jpeg.
author | michael |
---|---|
date | Thu, 10 Dec 2009 18:18:57 +0000 |
parents | 7127645ee791 |
children | 6eefb31b1bfc |
files | mjpegdec.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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]; } } }