]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/aac_defines.h
vc2enc: add non-experimental support for all video formats from spec
[ffmpeg] / libavcodec / aac_defines.h
index eff63b347c138a791cb481c26066ed247d6b2781..c12dc2fab783b36fb163315c6b277009fd2d1514 100644 (file)
@@ -89,9 +89,9 @@ typedef float               AAC_FLOAT;
 typedef unsigned            AAC_SIGNE;
 #define FIXR(x)             ((float)(x))
 #define FIXR10(x)           ((float)(x))
-#define Q23(x)              x
-#define Q30(x)              x
-#define Q31(x)              x
+#define Q23(x)              ((float)(x))
+#define Q30(x)              ((float)(x))
+#define Q31(x)              ((float)(x))
 #define RANGE15(x)          (32768.0 * (x))
 #define GET_GAIN(x, y)      powf((x), -(y))
 #define AAC_MUL16(x, y)     ((x) * (y))