Commit 39ff2ee8 authored by Kostya Shishkov's avatar Kostya Shishkov

Limit output sample to 0..maxval, fixes decoding of T16E0.JLS

Originally committed as revision 6908 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 8a7bde1c
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment