summaryrefslogtreecommitdiff
path: root/libavcodec/mlp.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/mlp.h')
-rw-r--r--libavcodec/mlp.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/libavcodec/mlp.h b/libavcodec/mlp.h
index b83881653c..628b58d318 100644
--- a/libavcodec/mlp.h
+++ b/libavcodec/mlp.h
@@ -47,13 +47,15 @@
*/
#define MAX_SUBSTREAMS 3
+/** which multiple of 48000 the maximum sample rate is */
+#define MAX_RATEFACTOR 4
/** maximum sample frequency seen in files */
-#define MAX_SAMPLERATE 192000
+#define MAX_SAMPLERATE (MAX_RATEFACTOR * 48000)
/** maximum number of audio samples within one access unit */
-#define MAX_BLOCKSIZE (40 * (MAX_SAMPLERATE / 48000))
+#define MAX_BLOCKSIZE (40 * MAX_RATEFACTOR)
/** next power of two greater than MAX_BLOCKSIZE */
-#define MAX_BLOCKSIZE_POW2 (64 * (MAX_SAMPLERATE / 48000))
+#define MAX_BLOCKSIZE_POW2 (64 * MAX_RATEFACTOR)
/** number of allowed filters */
#define NUM_FILTERS 2