From 5171fd9dd579687b4cd17c56e70a1ec6e3041553 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 13 Jun 2008 19:30:27 +0000 Subject: [PATCH] -0x8000 == 0x8000 with int16 fixes segfault / issue491 Originally committed as revision 13767 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/g726.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/g726.c b/libavcodec/g726.c index 1a0d40d..cb55a52 100644 --- a/libavcodec/g726.c +++ b/libavcodec/g726.c @@ -37,7 +37,7 @@ typedef struct Float11 { int mant; /**< 6bit mantissa */ } Float11; -static inline Float11* i2f(int16_t i, Float11* f) +static inline Float11* i2f(int i, Float11* f) { f->sign = (i < 0); if (f->sign) -- 2.7.4