mirror of https://github.com/sipwise/rtpengine.git
The decoder output frame was hard-coded to 960 samples, which is 20 ms at 48 kHz. libopus refuses to decode a packet that does not fit the given frame size, so every 40 ms and 60 ms packet (both ptimes accepted by opus_init) failed with "buffer too small" and was dropped. Size the buffer for 120 ms, the longest duration an Opus packet can carry, at the decoder's clock rate. Closes #2224 Change-Id: Ic2fcb32977ad0e262d42b74948103b0f68511d95 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commitmr26.0.147cd1458a7) (cherry picked from commit8591ed023a)
parent
d66dcddab2
commit
274f54b290
Loading…
Reference in new issue