Browse Source

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

Originally committed as revision 6908 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Kostya Shishkov 19 years ago
parent
commit
39ff2ee84d
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/jpeg_ls.c

+ 1
- 0
libavcodec/jpeg_ls.c View File

@@ -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;
}


Loading…
Cancel
Save