Commit 4a596d19 authored by Michael Niedermayer's avatar Michael Niedermayer

snowdec: check log in get_symbol2()

Fixes Ticket1635
Found-by: 's avatarPiotr Bandurski <ami_stuff@o2.pl>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0114c571
......@@ -582,7 +582,7 @@ static inline int get_symbol2(RangeCoder *c, uint8_t *state, int log2){
av_assert2(log2>=-4);
while(get_rac(c, state+4+log2)){
while(log2<28 && get_rac(c, state+4+log2)){
v+= r;
log2++;
if(log2>0) r+=r;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment