[opus] Please help me decode this webrtc chrome conversation
jmvalin at jmvalin.ca
Fri Nov 29 12:36:48 PST 2013
On the call where even opus_decoder_get_nb_samples() fails, what's the
value of the first two bytes of the buffer you're sending? And what's
the length of the buffer?
On 11/29/2013 03:31 PM, Ilya Basin wrote:
> Yes, I parse the RTP header, decrypt the payload and then feed the
> decrypted data to opus. Besides, opus_decoder_get_nb_samples() on 1st
> packet returns reasonable number 960, but then opus_decode() fails.
> On Fri, Nov 29, 2013 at 11:39 PM, Jean-Marc Valin <jmvalin at jmvalin.ca
> <mailto:jmvalin at jmvalin.ca>> wrote:
> On 29/11/13 01:49 PM, Ilya Basin wrote:
> > For example, the RTP payload is decrypted successfully, but
> > opus_packet_get_nb_samples() or opus_decode() return
> > OPUS_INVALID_PACKET.
> Are you sure you didn't forget to strip the RTP header before
> decoding it?
More information about the opus