Commit 10618c1d authored by kostya's avatar kostya

Wrong constant used in default threshold value calculation for

JPEG-LS lossy mode with < 128 colours.

Patch by Mathieu Malaterre (mail = gmailify("mathieu.malaterre"))


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14517 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 21c97fea
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment