You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
mss3: prevent AC state from becoming invalid in rac_normalise()
Fixes division by zero Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -295,7 +295,7 @@ static void rac_normalise(RangeCoder *c)
|
||||
c->low |= *c->src++;
|
||||
} else if (!c->low) {
|
||||
c->got_error = 1;
|
||||
return;
|
||||
c->low = 1;
|
||||
}
|
||||
if (c->range >= RAC_BOTTOM)
|
||||
return;
|
||||
|
Reference in New Issue
Block a user