get_se_golomb: fix decoding of very large values
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
b8820e7aa3
commit
a92816c4eb
@ -187,7 +187,11 @@ static inline int get_se_golomb(GetBitContext *gb){
|
|||||||
|
|
||||||
return ff_se_golomb_vlc_code[buf];
|
return ff_se_golomb_vlc_code[buf];
|
||||||
}else{
|
}else{
|
||||||
log= 2*av_log2(buf) - 31;
|
log = av_log2(buf);
|
||||||
|
LAST_SKIP_BITS(re, gb, 31 - log);
|
||||||
|
UPDATE_CACHE(re, gb);
|
||||||
|
buf = GET_CACHE(re, gb);
|
||||||
|
|
||||||
buf>>= log;
|
buf>>= log;
|
||||||
|
|
||||||
LAST_SKIP_BITS(re, gb, 32 - log);
|
LAST_SKIP_BITS(re, gb, 32 - log);
|
||||||
|
Loading…
Reference in New Issue
Block a user