mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
This commit is contained in:
parent
a64a062fb9
commit
631e8afb8c
@ -255,7 +255,7 @@ static inline int get_ur_golomb_jpegls(GetBitContext *gb, int k, int limit, int
|
|||||||
|
|
||||||
log= av_log2(buf);
|
log= av_log2(buf);
|
||||||
|
|
||||||
if(log > 31-11){
|
if(log - k >= 32-MIN_CACHE_BITS){
|
||||||
buf >>= log - k;
|
buf >>= log - k;
|
||||||
buf += (30-log)<<k;
|
buf += (30-log)<<k;
|
||||||
LAST_SKIP_BITS(re, gb, 32 + k - log);
|
LAST_SKIP_BITS(re, gb, 32 + k - log);
|
||||||
|
Loading…
Reference in New Issue
Block a user