diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2016-12-16 14:11:48 -0500 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2016-12-16 14:11:48 -0500 |
commit | 837583067a777dc095d0bf46aa908c93321d8eae (patch) | |
tree | a88f4fd55c4effd146cb5548000405a6635ae712 | |
parent | 8fe210f14b040880829682a9f3f90b02993b4a64 (diff) | |
download | opus-837583067a777dc095d0bf46aa908c93321d8eae.tar.gz |
Adding a missing "else"
Thanks to Zhendong Wu for spotting the issue
-rw-r--r-- | src/opus_encoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opus_encoder.c b/src/opus_encoder.c index bb94ec1a..de4a99a6 100644 --- a/src/opus_encoder.c +++ b/src/opus_encoder.c @@ -1552,7 +1552,7 @@ opus_int32 opus_encode_native(OpusEncoder *st, const opus_val16 *pcm, int frame_ { if (frame_size == 2*st->Fs/25) /* 80 ms -> 2x 40 ms */ enc_frame_size = st->Fs/25; - if (frame_size == 3*st->Fs/25) /* 120 ms -> 2x 60 ms */ + else if (frame_size == 3*st->Fs/25) /* 120 ms -> 2x 60 ms */ enc_frame_size = 3*st->Fs/50; else /* 100 ms -> 5x 20 ms */ enc_frame_size = st->Fs/50; |