aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/jpegls.c
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2008-08-03 05:07:48 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2008-08-03 05:07:48 +0000
commit19759c9a360bf9eda6b1bc1cef2a23177740e402 (patch)
treeff0088a49cfe2c8be5c4658492ca687649f51fd9 /libavcodec/jpegls.c
parent1db9da523815beb8e9fdcbc63205b3473616c6f0 (diff)
downloadffmpeg-19759c9a360bf9eda6b1bc1cef2a23177740e402.tar.gz
Wrong constant used in default threshold value calculation for
JPEG-LS lossy mode with < 128 colours. Patch by Mathieu Malaterre (mail = gmailify("mathieu.malaterre")) Originally committed as revision 14517 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/jpegls.c')
-rw-r--r--libavcodec/jpegls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/jpegls.c b/libavcodec/jpegls.c
index 352183bcd7..8c222e9e48 100644
--- a/libavcodec/jpegls.c
+++ b/libavcodec/jpegls.c
@@ -81,7 +81,7 @@ void ff_jpegls_reset_coding_parameters(JLSState *s, int reset_all){
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;