search for: opus_invalid_packet

Displaying 7 results from an estimated 7 matches for "opus_invalid_packet".

2012 Nov 13
1
Integer overflow in opus_packet_parse_impl
Hello, there is a chance for an integer overflow in opus_packet_parse_impl(): int padding=0; int p; do { if (len<=0) return OPUS_INVALID_PACKET; p = *data++; len--; padding += p==255 ? 254: p; } while (p==255); len -= padding; ... if (len<0) return OPUS_INVALID_PACKET; When ~16 MB of 0xff bytes is fed to the decoder, the padding variable overflows which leads to out-of-bounds read. It would be good t...
2013 Nov 29
2
Please help me decode this webrtc chrome conversation
...de a java decoder based on jitsi. Although the files contain all the needed info: encription keys, codec info, timestamps, etc., I could only decode one side in one of 2 conversations. For example, the RTP payload is decrypted successfully, but opus_packet_get_nb_samples() or opus_decode() return OPUS_INVALID_PACKET. payload-0.dat , contains my real voice. Decoded successfully. https://docs.google.com/file/d/0B40Hp1Tx6I6eaHJaRjBKY1M0WnM/edit payload-1.dat , contains looped beep recorded with a virtual microphone. While recording I was hearing it, but I can't decode the file. https://docs.google.com/file...
2015 Apr 02
0
One question about Opus encoder
...ode is below within red), then the length is not equal with the individual frame which is code0 or other code3CBR, and I think is this a fault? opus_repacketizer_cat()->opus_packet_parse()->opus_packet_parse_impl():switch (toc&0x3) default: /*case 3:*/ if (len<1) return OPUS_INVALID_PACKET; /* Number of frames encoded in bits 0 to 5 */ ch = *data++; count = ch&0x3F; if (count <= 0 || framesize*count > 5760) return OPUS_INVALID_PACKET; len--; /* Padding flag is bit 6 */ if (ch&0x40) { int p; do {...
2013 Nov 29
1
Please help me decode this webrtc chrome conversation
...n opus_decode() fails. On Fri, Nov 29, 2013 at 11:39 PM, Jean-Marc Valin <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? > > Jean-Marc > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/opus/attachments/20131130/b5b2050c/attachment.htm
2013 Nov 29
1
Please help me decode this webrtc chrome conversation
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? Jean-Marc
2013 Nov 29
0
Please help me decode this webrtc chrome conversation
...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? > > Jean-Marc > >
2016 Dec 30
1
Opus_Repacketiser_Issue
Hi All, I have taken ITU standard 48KHz female voice file and Encoded using opus_demo by giving follwoing arguments. opus_demo -e audio 48000 1 32000 female1.pcm female1frame.opus And using repacketiser tried to pack 6frames/packet(6*20msec=120msec). While packing I observed below error for 3 times. Error: opus_repacketizer_cat() failed: corrupted stream when i inspect the encoded file, it