edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
| 1 | #!/usr/bin/env bash |
| 2 | # seed.sh: fill fuzz/corpus/<target>/ from the RFC 6716 test vectors and the Ogg-Opus fixtures. |
| 3 | # |
| 4 | # decode_packet: each packet stream is re-packed as the target's layout (config byte, then |
| 5 | # u16 BE length + packet). Test vectors are .bit records (u32 BE length, u32 BE final range, |
| 6 | # payload). Each vector is written once as mono (config 8) and once as stereo (config 9). The |
| 7 | # Ogg-Opus fixtures are stereo or mono (the 5.1 file is replayed as stereo). Only the first |
| 8 | # MAX_PKTS packets go into each seed, so no seed is megabytes long. |
| 9 | # parse_toc: the first packet of each stream, as-is (its TOC byte is the first byte). |
| 10 | # |
| 11 | # Corpus lives under fuzz/corpus, which is git-ignored. |
| 12 | |
| 13 | |
| 14 | FUZZ_DIR= |
| 15 | ROOT= |
| 16 | VECTORS="/fixtures/vectors/opus-rfc6716/opus_testvectors" |
| 17 | AUDIO="/fixtures/audio" |
| 18 | [ || { ; ; } |
| 19 | |
| 20 | PKT_DIR="/corpus/decode_packet" |
| 21 | TOC_DIR="/corpus/parse_toc" |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 |