From 83c418e68ee55c55bf9f1185d5cb648fc91aed0b Mon Sep 17 00:00:00 2001 From: Derek Buitenhuis Date: Thu, 1 Mar 2012 16:36:08 -0500 Subject: [PATCH] wavpack: Fix an integer overflow Integer Overflow Checker detected an integer overflow while FATE was running. Signed-off-by: Derek Buitenhuis Signed-off-by: Michael Niedermayer --- libavcodec/wavpack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c index 09d22beef6..3ba996157b 100644 --- a/libavcodec/wavpack.c +++ b/libavcodec/wavpack.c @@ -428,7 +428,7 @@ static float wv_get_value_float(WavpackFrameContext *s, uint32_t *crc, int S) uint32_t u; } value; - int sign; + unsigned int sign; int exp = s->float_max_exp; if (s->got_extra_bits) {