Pascal Massimino 0a3838ca77 fix bug in RefineUsingDistortion()
When try_both_modes=0 (that is: -m 0 or -m 1), and the mode is i4,
we were still sometimes falling back to (unexplored, uninitialized) i16 mode,
which resulted in a enc/dec mismatch.
This was mainly occurring for large images (when bit_limit is low enough)

We disable the fall-back by disabling bit_limit using a large MAX_COST threshold.

Change-Id: I0c60257595812bd813b239ff4c86703ddf63cbf8
2016-11-12 02:15:28 -08:00
..
2016-06-01 16:23:16 +02:00
2016-10-10 15:37:45 +02:00
2016-10-10 13:39:17 +02:00
2016-09-14 16:15:43 +02:00
2016-11-12 02:15:28 -08:00
2016-09-13 15:37:32 +02:00