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 repo's AC-3 and E-AC-3 fixtures (root fixtures/audio). |
| 3 | # |
| 4 | # decode_stream gets each fixture truncated to its first few syncframes (5 frames). |
| 5 | # parse_header gets the first 256 bytes of each fixture, which covers syncinfo and the BSI. |
| 6 | # |
| 7 | # Frame boundaries are found by walking the 0x0B77 syncwords, so a stray match inside a frame |
| 8 | # only makes a seed slightly longer or shorter; it is still a valid starting point. |
| 9 | # |
| 10 | # Corpus lives under fuzz/corpus, which is git-ignored. |
| 11 | |
| 12 | |
| 13 | FUZZ_DIR= |
| 14 | FIXTURES=/fixtures/audio |
| 15 | [ || { ; ; } |
| 16 | |
| 17 | FILES=(""/ac3-*.ac3 ""/eac3-*.eac3 ""/ac3dep-*.eac3) |
| 18 | [ || { ; ; } |
| 19 | |
| 20 | STREAM_DIR="/corpus/decode_stream" |
| 21 | HEADER_DIR="/corpus/parse_header" |
| 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 |