search for: opus_packet_get_nb_channels

Displaying 5 results from an estimated 5 matches for "opus_packet_get_nb_channels".

2017 Feb 10
2
Adding a decoder fuzz target
...39;s a few comments/questions on your patch: > > > static void ParseToc(const uint8_t toc, TocInfo *const info) { > > Any particular reason you don't use the Opus functions for parsing the > ToC? It seems like opus_packet_get_nb_samples(), > opus_packet_get_bandwidth(), and opus_packet_get_nb_channels() should do > the trick. > > > int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) > > How is that function supposed to work? I noticed that it will only > decode a single packet. How does the fuzzer handle testing for bugs that > only happen for a given sequence of...
2017 Jan 27
3
Adding a decoder fuzz target
Hi all, I'm working on fuzzing Opus with OSS-Fuzz and have started with the decoder. Attached is a patch to add the corresponding fuzz target. Please let me know if there are any concerns? Thanks, Felicia -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xiph.org/pipermail/opus/attachments/20170127/f69951aa/attachment-0001.html>
2017 Jan 30
0
Adding a decoder fuzz target
Hi Felicia, Here's a few comments/questions on your patch: > static void ParseToc(const uint8_t toc, TocInfo *const info) { Any particular reason you don't use the Opus functions for parsing the ToC? It seems like opus_packet_get_nb_samples(), opus_packet_get_bandwidth(), and opus_packet_get_nb_channels() should do the trick. > int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) How is that function supposed to work? I noticed that it will only decode a single packet. How does the fuzzer handle testing for bugs that only happen for a given sequence of input packets? Cheers, Jean-M...
2017 Feb 10
0
Adding a decoder fuzz target
...s/questions on your patch: > > > static void ParseToc(const uint8_t toc, TocInfo *const info) { > > Any particular reason you don't use the Opus functions for parsing the > ToC? It seems like opus_packet_get_nb_samples(), > opus_packet_get_bandwidth(), and opus_packet_get_nb_channels() should do > the trick. > > > int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) > > How is that function supposed to work? I noticed that it will only > decode a single packet. How does the fuzzer handle testing for bugs that > only happen f...
2019 Jul 15
0
How to enable OPUS inband FEC
...80) { info("CELT payload type!!\n"); return false; } payload_length_ms = opus_packet_get_samples_per_frame(payload, sample_rate) / 8; //payload_length_ms = opus_packet_get_samples_per_frame(payload, 48000) / 48; if (10 > payload_length_ms) payload_length_ms = 10; channels = opus_packet_get_nb_channels(payload); switch (payload_length_ms) { case 10: case 20: { frames = 1; break; } case 40: { frames = 2; break; } case 60: { frames = 3; break; } default: { return false; // It is actually even an invalid packet. } } /* The following is to parse the LBRR flags. */ if (opus_pac...