From 74f36b56dd8ad176fecd3344fd27ed9a99a44221 Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin <jmvalin@jmvalin.ca> Date: Wed, 20 Feb 2013 22:31:49 -0500 Subject: [PATCH] oops s/IMAX/IMIN/ --- src/opus_encoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opus_encoder.c b/src/opus_encoder.c index 3cee88b31..7cff84281 100644 --- a/src/opus_encoder.c +++ b/src/opus_encoder.c @@ -773,7 +773,7 @@ opus_int32 frame_size_select(opus_int32 frame_size, int variable_duration, opus_ else if (variable_duration == OPUS_FRAMESIZE_VARIABLE) new_size = Fs/50; else if (variable_duration >= OPUS_FRAMESIZE_2_5_MS && variable_duration <= OPUS_FRAMESIZE_60_MS) - new_size = IMAX(3*Fs/50, (Fs/400)<<(variable_duration-OPUS_FRAMESIZE_2_5_MS)); + new_size = IMIN(3*Fs/50, (Fs/400)<<(variable_duration-OPUS_FRAMESIZE_2_5_MS)); else return -1; if (new_size>frame_size) -- GitLab