aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-30 05:12:38 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-12-30 05:12:38 +0100
commitb0143da80656f286b3e2363f3ddb6f81c4a0fbf5 (patch)
treeaa801cdda38c33a61b68b26ba163f736af1cbb2e /libavcodec
parent83f70805c04ec53e7f18159fd04a20f40e1818c8 (diff)
downloadffmpeg-b0143da80656f286b3e2363f3ddb6f81c4a0fbf5.tar.gz
ljpegdec: fix point transform injection.
Fix Ticket842 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mjpegdec.c2
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;