changeset 4147:c8fa103d8c75 libavcodec

Limit output sample to 0..maxval, fixes decoding of T16E0.JLS
author kostya
date Mon, 06 Nov 2006 05:35:09 +0000
parents c09e31f70a30
children 228252c41929
files jpeg_ls.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/jpeg_ls.c	Sun Nov 05 19:24:23 2006 +0000
+++ b/jpeg_ls.c	Mon Nov 06 05:35:09 2006 +0000
@@ -384,6 +384,7 @@
             pred = clip(pred, 0, state->maxval);
         }
 
+        pred &= state->maxval;
         W(dst, x, pred);
         x += stride;
     }