[opus] Bugfix for OPUS_GET_IN_DTX

Gustaf Ullberg gustaf at google.com
Wed Dec 4 10:34:34 UTC 2019

We (WebRTC) found a bug in the current implementation of
OPUS_GET_IN_DTX and I just created a pull request for a fix on the
Opus GitHub page. It would be great if maintainers could take a look.

Patch attached.

Best regards

>From the PR:
The current implementation of OPUS_GET_IN_DTX does not properly handle
the case when only the middle channel is encoded in Silk stereo.

This PR fixes the bug by only looking at noSpeechCouter for the second
channel (side channel) if the previous frame was not "only middle".

The bug was found by a failing WebRTC test case:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-OPUS_GET_IN_DTX-handles-Silk-middle-channel-only.patch
Type: text/x-patch
Size: 1862 bytes
Desc: not available
URL: <http://lists.xiph.org/pipermail/opus/attachments/20191204/f562830a/attachment.bin>

More information about the opus mailing list