mirror of
https://github.com/webmproject/libwebp.git
synced 2025-02-18 18:02:52 +01:00
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 (cherry picked from commit 0a3838ca77c515ace2c49738f6976dc8aa3e136c)