This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
lagarith: avoid infinite loop in lag_rac_refill()
range == 0 happens with corrupted files CC:libav-stable@libav.org
tags/n1.2
Anton Khirnov
12 years ago
parent
f935aca44c
commit
de6dfa2bb8
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
libavcodec/lagarithrac.h
+ 3
- 0
libavcodec/lagarithrac.h
View File
@@ -107,6 +107,9 @@ static inline uint8_t lag_get_rac(lag_rac *l)
l->range -= range_scaled * l->prob[255];
}
if (!l->range)
l->range = 0x80;
l->low -= range_scaled * l->prob[val];
return val;
Write
Preview
Loading…
Cancel
Save