edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
| 1 | |
| 2 | |
| 3 | // Input layout: |
| 4 | // byte 0 bit 0: channels (0 = mono, 1 = stereo); bits 1..3: output rate index |
| 5 | // (mod 5: 8, 12, 16, 24, 48 kHz) |
| 6 | // then packets, each prefixed by a u16 big-endian length |
| 7 | // (a length past the end of the input is clamped to what remains) |
| 8 | // All packets are decoded in sequence on one decoder, so state carries across them. |
| 9 | |
| 10 | use Decoder; |
| 11 | use fuzz_target; |
| 12 | |
| 13 | const RATES: = ; |
| 14 | |
| 15 | fuzz_target! |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | ; |