Commit 4acfe3d1 authored by Michael Niedermayer's avatar Michael Niedermayer

jpegls: fix off limit

Fixes part of CID717913
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 9f9307ff
......@@ -295,7 +295,7 @@ int ff_jpegls_decode_picture(MJpegDecodeContext *s, int near, int point_transfor
}
if(ilv == 0) { /* separate planes */
stride = (s->nb_components > 1) ? 3 : 1;
off = av_clip(s->cur_scan - 1, 0, stride);
off = av_clip(s->cur_scan - 1, 0, stride - 1);
width = s->width * stride;
cur += off;
for(i = 0; i < s->height; i++) {
......
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