From 39ff2ee84d58fa27def7e5db450bbd7a0888f3ad Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Mon, 6 Nov 2006 05:35:09 +0000 Subject: [PATCH] Limit output sample to 0..maxval, fixes decoding of T16E0.JLS Originally committed as revision 6908 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/jpeg_ls.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/jpeg_ls.c b/libavcodec/jpeg_ls.c index 6f6d109c2..1b4df2b1a 100644 --- a/libavcodec/jpeg_ls.c +++ b/libavcodec/jpeg_ls.c @@ -384,6 +384,7 @@ static inline void ls_decode_line(JLSState *state, MJpegDecodeContext *s, void * pred = clip(pred, 0, state->maxval); } + pred &= state->maxval; W(dst, x, pred); x += stride; } -- 2.11.0