aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2006-11-06 05:35:09 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2006-11-06 05:35:09 +0000
commit39ff2ee84d58fa27def7e5db450bbd7a0888f3ad (patch)
treeecf078e85c23878002f7190155a29cbd243a6af8 /libavcodec
parent8a7bde1ca9e4ebf61869d834c27e11cf9503b965 (diff)
downloadffmpeg-39ff2ee84d58fa27def7e5db450bbd7a0888f3ad.tar.gz
Limit output sample to 0..maxval, fixes decoding of T16E0.JLS
Originally committed as revision 6908 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/jpeg_ls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/jpeg_ls.c b/libavcodec/jpeg_ls.c
index 6f6d109c20..1b4df2b1a0 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;
}