---
 libavcodec/ac3enc.c  |    2 +-
 tests/ref/acodec/ac3 |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git libavcodec/ac3enc.c libavcodec/ac3enc.c
index 0f1665c..0ac0f94 100644
--- libavcodec/ac3enc.c
+++ libavcodec/ac3enc.c
@@ -88,7 +88,7 @@ static int16_t xsin1[128];
 #define EXP_DIFF_THRESHOLD 1000
 
 /** convert float in range [-1..1] to int16_t in range [-32768..32767] */
-#define FIX15(a) ((int16_t)av_clip_int16((int)(a * (float)(1 << 15))))
+#define FIX15(a) (av_clip_int16(lrintf(a * (float)(1 << 15))))
 
 typedef struct IComplex {
     int16_t re,im;
diff --git tests/ref/acodec/ac3 tests/ref/acodec/ac3
index b393956..32f47e0 100644
--- tests/ref/acodec/ac3
+++ tests/ref/acodec/ac3
@@ -1,2 +1,2 @@
-081bfd5e683b13cccf1b07c43c1c5005 *./tests/data/acodec/ac3.rm
+464093173530736050e338caf152044c *./tests/data/acodec/ac3.rm
 98751 ./tests/data/acodec/ac3.rm
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to