]> git.ipfire.org Git - thirdparty/asterisk.git/commit
codec_opus: Fix warning when Opus negotiated but codec_opus not loaded. 54/4454/2
authorRichard Mudgett <rmudgett@digium.com>
Tue, 15 Nov 2016 22:23:35 +0000 (16:23 -0600)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 16 Nov 2016 19:49:23 +0000 (13:49 -0600)
commited0f1afc8cea8918171a1aabc9b6885bba41e3c4
tree72eaef93bcdd6e6c4a88774845abc53d064eb1b4
parent4c3d25875f0a91554437020aec8f79e53db1d26b
codec_opus: Fix warning when Opus negotiated but codec_opus not loaded.

When Opus is negotiated but not loaded, the log is spammed with messages
because the system does not know how to calculate the number of samples in
a frame.

* Suppress the warning by supplying a function that assumes 20ms of
samples in the frame.  For pass through support it doesn't really seem to
matter what number of samples is returned anyway.

ASTERISK-26605 #close

Change-Id: Icf2273692f040dc2c45b01e72a790d11092f9e0f
main/codec_builtin.c