mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
Fix regression test failure caused by golomb limit not being considered
in r15334. Originally committed as revision 15338 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0bc4c436aa
commit
740c14dbd7
@ -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 - k >= 32-MIN_CACHE_BITS){
|
if(log - k >= 32-MIN_CACHE_BITS && 32-log < limit){
|
||||||
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