From 631e8afb8c59a0759e57ade1c8a910bb46e0fd6d Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 15 Sep 2008 20:30:22 +0000 Subject: [PATCH] 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 --- libavcodec/golomb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/golomb.h b/libavcodec/golomb.h index a1d904cced..f2fb8928a2 100644 --- a/libavcodec/golomb.h +++ b/libavcodec/golomb.h @@ -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)<