forge
Explore
Log in

Don't you dare go Hollow

edith_codecs

Clone
★ 0

0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits

seed.sh30 lines, 886 bytesHistoryRawDownload
1#!/usr/bin/env bash
2# Copy the seed streams from the shared JVT fixtures into the fuzz corpus.
3# The corpus is not committed (see .gitignore); run this before a fuzz run.
4set -euo pipefail
5
6here=$(cd -- "$(dirname -- "$0")" && pwd)
7src="$here/../../../fixtures/vectors/h264-jvt"
8dst="$here/corpus/decode_annexb"
9
10seeds=(
11 CABA2_SVA_B/CABA2_SVA_B.264
12 CANL3_SVA_B/CANL3_SVA_B.264
13 BA3_SVA_C/BA3_SVA_C.264
14 SL1_SVA_B/SL1_SVA_B.264
15 AUD_MW_E/AUD_MW_E.264
16)
17
18mkdir -p "$dst"
19for rel in "${seeds[@]}"; do
20 f="$src/$rel"
21 if [ ! -f "$f" ]; then
22 echo "seed.sh: missing fixture $f (run scripts/link-fixtures.sh)" >&2
23 exit 1
24 fi
25 cp -f "$f" "$dst/$(basename "$rel")"
26done
27# The avcC target shares the same seeds; it parses them as raw packets.
28mkdir -p "$here/corpus/decode_avcc"
29cp -f "$dst"/*.264 "$here/corpus/decode_avcc/"
30echo "seed.sh: $(ls "$dst" | wc -l) seeds in $dst"