[FFmpeg-cvslog] ljpegdec: fix point transform injection.
Michael Niedermayer
git at videolan.org
Fri Dec 30 06:25:21 CET 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Dec 30 05:12:38 2011 +0100| [b0143da80656f286b3e2363f3ddb6f81c4a0fbf5] | committer: Michael Niedermayer
ljpegdec: fix point transform injection.
Fix Ticket842
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b0143da80656f286b3e2363f3ddb6f81c4a0fbf5
---
libavcodec/mjpegdec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index 19438ce..166c223 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;
More information about the ffmpeg-cvslog
mailing list