Fix from Aaron to match v1's threshold value.
authorCarl Hetherington <cth@carlh.net>
Sat, 2 Sep 2017 18:18:23 +0000 (19:18 +0100)
committercah <cah@ableton.com>
Tue, 3 Dec 2019 10:37:04 +0000 (11:37 +0100)
src/lib/openjp2/tcd.c

index b3e789e3353602f8347c76e323b400356c5f69b1..9a80d7aca0f9bd661544c7003f8dbf429553a0e6 100644 (file)
@@ -540,7 +540,7 @@ OPJ_BOOL opj_tcd_rateallocate(opj_tcd_t *tcd,
         OPJ_FLOAT64 goodthresh = 0;
         OPJ_FLOAT64 stable_thresh = 0;
                OPJ_FLOAT64 old_thresh = -1;
-               const OPJ_FLOAT64 tolerance = 0.01;
+               const OPJ_FLOAT64 tolerance = 0.001;
         OPJ_UINT32 i;
         OPJ_FLOAT64 distotarget;                /* fixed_quality */