# HG changeset patch # User michael # Date 1221510622 0 # Node ID 4f0e33b1a228cbcb6ff4db19b547c83f4fab5326 # Parent c7420b070961bbad04438ebc48b783a6dddb8bb7 Correct the threshold of get_ur_golomb_jpegls() at which the optimized case is used. Fix issue245. diff -r c7420b070961 -r 4f0e33b1a228 golomb.h --- a/golomb.h Sun Sep 14 22:27:47 2008 +0000 +++ b/golomb.h Mon Sep 15 20:30:22 2008 +0000 @@ -255,7 +255,7 @@ log= av_log2(buf); - if(log > 31-11){ + if(log - k >= 32-MIN_CACHE_BITS){ buf >>= log - k; buf += (30-log)<