Commit 631e8afb authored by Michael Niedermayer's avatar Michael Niedermayer

Correct the threshold of get_ur_golomb_jpegls() at which the optimized

case is used.
Fix issue245.

Originally committed as revision 15334 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent a64a062f
......@@ -255,7 +255,7 @@ static inline int get_ur_golomb_jpegls(GetBitContext *gb, int k, int limit, int
log= av_log2(buf);
if(log > 31-11){
if(log - k >= 32-MIN_CACHE_BITS){
buf >>= log - k;
buf += (30-log)<<k;
LAST_SKIP_BITS(re, gb, 32 + k - log);
......
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