Browse Source

jpegls: fix off limit

Fixes part of CID717913
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 13 years ago
parent
commit
4acfe3d193
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/jpeglsdec.c

+ 1
- 1
libavcodec/jpeglsdec.c View File

@@ -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++) {


Loading…
Cancel
Save