aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2012-03-01 16:36:08 -0500
committerMichael Niedermayer <michaelni@gmx.at>2012-03-02 02:40:24 +0100
commit83c418e68ee55c55bf9f1185d5cb648fc91aed0b (patch)
treecf1a8d7f45bb06c6980d4626f2ef7a508cee6c4d
parentd91912effa2aac0cc15c749623c005724c5ec10e (diff)
downloadffmpeg-83c418e68ee55c55bf9f1185d5cb648fc91aed0b.tar.gz
wavpack: Fix an integer overflow
Integer Overflow Checker detected an integer overflow while FATE was running. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/wavpack.c2
1 files changed, 1 insertions, 1 deletions
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) {