Commit b0143da8 authored by Michael Niedermayer's avatar Michael Niedermayer

ljpegdec: fix point transform injection.

Fix Ticket842
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 83f70805
......@@ -660,7 +660,7 @@ static int ljpeg_decode_rgb_scan(MJpegDecodeContext *s, int predictor, int point
buffer= s->ljpeg_buffer;
for(i=0; i<3; i++){
buffer[0][i]= 1 << (s->bits + point_transform - 1);
buffer[0][i]= 1 << (s->bits - 1);
}
for(mb_y = 0; mb_y < s->mb_height; mb_y++) {
const int modified_predictor= mb_y ? predictor : 1;
......
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