summaryrefslogtreecommitdiffstats
path: root/libfaad2/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'libfaad2/common.h')
-rw-r--r--libfaad2/common.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/libfaad2/common.h b/libfaad2/common.h
index c622913ae0..2b0c204fee 100644
--- a/libfaad2/common.h
+++ b/libfaad2/common.h
@@ -242,8 +242,8 @@ char *strchr(), *strrchr();
#define MUL_C_C(A,B) ((A)*(B))
#define MUL_R_C(A,B) ((A)*(B))
- #define REAL_CONST(A) ((real_t)A)
- #define COEF_CONST(A) ((real_t)A)
+ #define REAL_CONST(A) ((real_t)(A))
+ #define COEF_CONST(A) ((real_t)(A))
#else /* Normal floating point operation */
@@ -253,8 +253,8 @@ char *strchr(), *strrchr();
#define MUL_C_C(A,B) ((A)*(B))
#define MUL_R_C(A,B) ((A)*(B))
- #define REAL_CONST(A) ((real_t)A)
- #define COEF_CONST(A) ((real_t)A)
+ #define REAL_CONST(A) ((real_t)(A))
+ #define COEF_CONST(A) ((real_t)(A))
#ifdef __ICL /* only Intel C compiler has fmath ??? */
@@ -307,6 +307,7 @@ typedef real_t complex_t[2];
int32_t int_log2(int32_t val);
uint32_t random_int(void);
uint8_t get_sr_index(uint32_t samplerate);
+uint32_t get_sample_rate(uint8_t sr_index);
int8_t can_decode_ot(uint8_t object_type);
#ifndef M_PI