aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-08-16 01:31:19 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-08-16 01:31:19 +0200
commit4a596d19ff2524e7d43449265554a526c06f684b (patch)
tree711a425bb1884437761bfedb47fb62a3090aae66
parent0114c571d4c8cc1036850ced924683709390681a (diff)
downloadffmpeg-4a596d19ff2524e7d43449265554a526c06f684b.tar.gz
snowdec: check log in get_symbol2()
Fixes Ticket1635 Found-by: Piotr Bandurski <ami_stuff@o2.pl> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/snow.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/snow.h b/libavcodec/snow.h
index 7e35b5f1be..30e6a9a485 100644
--- a/libavcodec/snow.h
+++ b/libavcodec/snow.h
@@ -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;