projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49b1919
)
Flip red and blue in rct-less lossless jpeg.
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 10 Dec 2009 18:18:57 +0000
(18:18 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 10 Dec 2009 18:18:57 +0000
(18:18 +0000)
Fixes issue1466, and decoding of plain lossless jpeg.
Originally committed as revision 20790 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mjpegdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/mjpegdec.c
b/libavcodec/mjpegdec.c
index
d23c67c
..
a1839ac
100644
(file)
--- 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
];
}
}
}