diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-30 08:12:38 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-12-30 08:12:38 +0400 |
commit | b0143da80656f286b3e2363f3ddb6f81c4a0fbf5 (patch) | |
tree | aa801cdda38c33a61b68b26ba163f736af1cbb2e /libavcodec/mjpegdec.c | |
parent | 83f70805c04ec53e7f18159fd04a20f40e1818c8 (diff) |
ljpegdec: fix point transform injection.
Fix Ticket842
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mjpegdec.c')
-rw-r--r-- | libavcodec/mjpegdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index 19438cee84..166c22306f 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -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; |