diff options
author | William Wilgus <me.theuser@yahoo.com> | 2019-01-04 02:01:18 -0600 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-04-23 14:23:04 +0000 |
commit | 14c6bb798d6bebc80f07e863236adbaf8d156a9c (patch) | |
tree | 551a4b641906c2626af844fa3239c1b2b1ff0ad3 /lib/rbcodec/codecs/libopus/silk/log2lin.c | |
parent | 75d93937965ec4df70d37df6d4feea04577c996b (diff) | |
download | rockbox-14c6bb798d6bebc80f07e863236adbaf8d156a9c.tar.gz rockbox-14c6bb798d6bebc80f07e863236adbaf8d156a9c.zip |
Sync opus codec to upstream git
Change-Id: I0cfcc0005c4ad7bfbb1aaf454188ce70fb043dc1
Diffstat (limited to 'lib/rbcodec/codecs/libopus/silk/log2lin.c')
-rw-r--r-- | lib/rbcodec/codecs/libopus/silk/log2lin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rbcodec/codecs/libopus/silk/log2lin.c b/lib/rbcodec/codecs/libopus/silk/log2lin.c index a692e009db..b7c48e4740 100644 --- a/lib/rbcodec/codecs/libopus/silk/log2lin.c +++ b/lib/rbcodec/codecs/libopus/silk/log2lin.c | |||
@@ -33,7 +33,7 @@ POSSIBILITY OF SUCH DAMAGE. | |||
33 | 33 | ||
34 | /* Approximation of 2^() (very close inverse of silk_lin2log()) */ | 34 | /* Approximation of 2^() (very close inverse of silk_lin2log()) */ |
35 | /* Convert input to a linear scale */ | 35 | /* Convert input to a linear scale */ |
36 | opus_int32 silk_log2lin( | 36 | opus_int32 silk_log2lin( |
37 | const opus_int32 inLog_Q7 /* I input on log scale */ | 37 | const opus_int32 inLog_Q7 /* I input on log scale */ |
38 | ) | 38 | ) |
39 | { | 39 | { |
@@ -42,8 +42,8 @@ opus_int32 silk_log2lin( | |||
42 | if( inLog_Q7 < 0 ) { | 42 | if( inLog_Q7 < 0 ) { |
43 | return 0; | 43 | return 0; |
44 | } else if ( inLog_Q7 >= 3967 ) { | 44 | } else if ( inLog_Q7 >= 3967 ) { |
45 | return silk_int32_MAX; | 45 | return silk_int32_MAX; |
46 | } | 46 | } |
47 | 47 | ||
48 | out = silk_LSHIFT( 1, silk_RSHIFT( inLog_Q7, 7 ) ); | 48 | out = silk_LSHIFT( 1, silk_RSHIFT( inLog_Q7, 7 ) ); |
49 | frac_Q7 = inLog_Q7 & 0x7F; | 49 | frac_Q7 = inLog_Q7 & 0x7F; |