Otherwise the aac_fixed decoder triggers av_assert2 in av_mul_sf, when
the input happens to be INT32_MIN.

Signed-off-by: Andreas Cadhalpun <andreas.cadhal...@googlemail.com>
---
 libavutil/softfloat.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/softfloat.h b/libavutil/softfloat.h
index 5fa5dc0..e87cbf4 100644
--- a/libavutil/softfloat.h
+++ b/libavutil/softfloat.h
@@ -147,7 +147,7 @@ static inline av_const SoftFloat av_sub_sf(SoftFloat a, 
SoftFloat b){
  * @returns a SoftFloat with value v * 2^frac_bits
  */
 static inline av_const SoftFloat av_int2sf(int v, int frac_bits){
-    return av_normalize_sf((SoftFloat){v, ONE_BITS + 1 - frac_bits});
+    return av_normalize_sf(av_normalize1_sf((SoftFloat){v, ONE_BITS + 1 - 
frac_bits}));
 }
 
 /**
-- 
2.6.2


_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to