changeset 7467:7df2cf766685 libavcodec

Wrong constant used in default threshold value calculation for JPEG-LS lossy mode with < 128 colours. Patch by Mathieu Malaterre (mail = gmailify("mathieu.malaterre"))
author kostya
date Sun, 03 Aug 2008 05:07:48 +0000
parents 3cb3c85c8474
children 38e9f32f8d43
files jpegls.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jpegls.c	Sun Aug 03 02:16:51 2008 +0000
+++ b/jpegls.c	Sun Aug 03 05:07:48 2008 +0000
@@ -81,7 +81,7 @@
         if(s->T2==0     || reset_all)
             s->T2= iso_clip(FFMAX(3, basic_t2/factor + 5*s->near), s->T1, s->maxval);
         if(s->T3==0     || reset_all)
-            s->T3= iso_clip(FFMAX(4, basic_t3/factor + 6*s->near), s->T2, s->maxval);
+            s->T3= iso_clip(FFMAX(4, basic_t3/factor + 7*s->near), s->T2, s->maxval);
     }
 
     if(s->reset==0  || reset_all) s->reset= 64;