[FFmpeg-cvslog] mss3: prevent AC state from becoming invalid in rac_normalise()
Michael Niedermayer
git at videolan.org
Wed Jan 30 18:21:21 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Jan 30 18:12:42 2013 +0100| [b926cc7834d5bc998775528097831c0fbcf3730a] | committer: Michael Niedermayer
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 at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b926cc7834d5bc998775528097831c0fbcf3730a
---
libavcodec/mss3.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/mss3.c b/libavcodec/mss3.c
index 545fefc..d5bb2d4 100644
--- a/libavcodec/mss3.c
+++ b/libavcodec/mss3.c
@@ -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;
More information about the ffmpeg-cvslog
mailing list