diff options
Diffstat (limited to 'apps/codecs')
-rw-r--r-- | apps/codecs/libffmpegFLAC/golomb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/libffmpegFLAC/golomb.h b/apps/codecs/libffmpegFLAC/golomb.h index 57e84f4e57..659ecc1579 100644 --- a/apps/codecs/libffmpegFLAC/golomb.h +++ b/apps/codecs/libffmpegFLAC/golomb.h | |||
@@ -63,7 +63,7 @@ static inline int get_ur_golomb_jpegls(GetBitContext *gb, int k, int limit, int | |||
63 | 63 | ||
64 | log= av_log2(buf); | 64 | log= av_log2(buf); |
65 | 65 | ||
66 | if(log > 31-11){ | 66 | if(log - k >= 32-MIN_CACHE_BITS+(MIN_CACHE_BITS==32) && 32-log < limit){ |
67 | buf >>= log - k; | 67 | buf >>= log - k; |
68 | buf += (30-log)<<k; | 68 | buf += (30-log)<<k; |
69 | LAST_SKIP_BITS(re, gb, 32 + k - log); | 69 | LAST_SKIP_BITS(re, gb, 32 + k - log); |