[SCM] libav/experimental: Limit output sample to 0..maxval, fixes decoding of T16E0.JLS

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:53:00 UTC 2013


The following commit has been merged in the experimental branch:
commit 39ff2ee84d58fa27def7e5db450bbd7a0888f3ad
Author: Kostya Shishkov <kostya.shishkov at gmail.com>
Date:   Mon Nov 6 05:35:09 2006 +0000

    Limit output sample to 0..maxval, fixes decoding of T16E0.JLS
    
    Originally committed as revision 6908 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/jpeg_ls.c b/libavcodec/jpeg_ls.c
index 6f6d109..1b4df2b 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;
     }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list