Browse Source

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
tags/v0.5
Michael Niedermayer 17 years ago
parent
commit
631e8afb8c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/golomb.h

+ 1
- 1
libavcodec/golomb.h View File

@@ -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);


Loading…
Cancel
Save