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: write a handful of small MPEG audio seeds into fuzz/corpus/decode, using ffmpeg. |
| 3 | # |
| 4 | # Covers MP2 (Layer II) mono and stereo at 32 kHz, 44.1 kHz and 48 kHz, MPEG-2 LSF MP2 at |
| 5 | # 22.05 kHz, and MP3 (Layer III) mono and stereo at 44.1 kHz and an LSF 22.05 kHz stream. Each |
| 6 | # is a 1 s sine tone, so every seed is under 25 KB. Layer I has no encoder in ffmpeg and no |
| 7 | # generator in tests/, so it has no seed; the decoder still reaches it through the same reader. |
| 8 | # The corpus is not committed (see .gitignore); run this before a fuzz run. |
| 9 | |
| 10 | |
| 11 | here= |
| 12 | dst="/corpus/decode" |
| 13 | |
| 14 | src="sine=frequency=440:duration=1" |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 |