diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6f9dc62 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +testdata/** -text diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..810d138 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,165 @@ +name: ci + +on: + push: + branches: [main] + pull_request: + branches: [main] + +permissions: + contents: read + +# CI pins the Go release below (Renovate moves it). The go.mod floor is 1.27.1. +jobs: + # Every file must be gofmt-clean. + gofmt: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - uses: actions/setup-go@v7 + with: + go-version: '1.27.3' + - name: gofmt + run: | + unformatted=$(gofmt -l .) + if [ -n "$unformatted" ]; then + echo "::error::these files are not gofmt-clean:"; echo "$unformatted" + exit 1 + fi + + # Build, vet, race-test, and gate every statement of the library: covergate + # reads the profile itself, because `go tool cover -func` prints 99.97% as + # 100.0%. The tools module (the ffmpeg oracle harness and covergate) is tested + # on the same three systems; its own tests skip what needs ffmpeg. + test: + name: test (${{ matrix.os }}) + runs-on: ${{ matrix.os }} + # PowerShell splits `-coverprofile=cover.out` at the dot. + defaults: + run: + shell: bash + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + steps: + - uses: actions/checkout@v7 + - uses: actions/setup-go@v7 + with: + go-version: '1.27.3' + - run: go version + - run: go vet ./... + - run: go build ./... + - name: Test with the race detector and write the coverage profile + run: go test -race -coverprofile=cover.out ./... + - name: Coverage gate, every statement + working-directory: tools + run: go run ./covergate ../cover.out + - name: Tools module + working-directory: tools + run: go vet ./... && go test ./... + + # A stream is untrusted input. The corpus in testdata/fuzz runs as ordinary + # tests above; this job also mutates it for a while. A crash fails the job and + # go test prints the input it found, to be committed to the corpus with its fix. + fuzz: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - uses: actions/setup-go@v7 + with: + go-version: '1.27.3' + - run: go test -run XXX -fuzz FuzzDecodeSample -fuzztime 60s . + - run: go test -run XXX -fuzz FuzzDecodeAnnexB -fuzztime 60s . + - run: go test -run XXX -fuzz FuzzParseAVCC -fuzztime 20s . + + vuln: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - uses: actions/setup-go@v7 + with: + go-version: '1.27.3' + - run: go install golang.org/x/vuln/cmd/govulncheck@latest + - run: govulncheck ./... + - run: govulncheck ./... + working-directory: tools + + # The six supported 64-bit targets: amd64/arm64 natively, the rest under + # qemu-user. s390x is big-endian, so it is also the byte-order gate for the + # length prefixes and the avcC reader. + arch-native: + name: arch ${{ matrix.label }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + include: + - { os: ubuntu-latest, label: amd64 } + - { os: ubuntu-24.04-arm, label: arm64 } + steps: + - uses: actions/checkout@v7 + - uses: actions/setup-go@v7 + with: + go-version: '1.27.3' + - run: go env GOARCH && go test ./... + + # The one 32-bit target, where int is 32 bits wide: a length converted to int + # before it is compared wraps only here. It runs natively on the amd64 runner. + # Coverage is gated on the 64-bit lanes; this one only vets and tests. + arch-386: + name: arch 386 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - uses: actions/setup-go@v7 + with: + go-version: '1.27.2' + - run: GOARCH=386 go vet ./... + - run: GOARCH=386 go test ./... + + arch-qemu: + name: arch ${{ matrix.goarch }} (qemu) + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - { goarch: riscv64, qemu: qemu-riscv64-static } + # loong64 carries a known upstream code-generation defect, + # golang/go#81000, that this lane cannot fully rule out: float to + # integer conversions are declared with a floating-point output on + # LOONG64, and an integer that inherits an FP register is spilled + # with an 8-byte store, which destroys its neighbour when it is a + # byte. go.264 stores pictures as bytes. If this lane goes red on + # loong64 alone, suspect that before the code. See + # go-avkit/avkit .github/workflows/ci.yml for the full account. + - { goarch: loong64, qemu: qemu-loongarch64-static } + - { goarch: ppc64le, qemu: qemu-ppc64le-static } + - { goarch: s390x, qemu: qemu-s390x-static } + steps: + - uses: actions/checkout@v7 + - uses: actions/setup-go@v7 + with: + go-version: '1.27.3' + # `qemu-user-static` is a virtual package on Ubuntu 26.04; install the + # dynamic emulators, which is all `go test -exec` needs, and accept either + # name below. + - name: install qemu user-mode emulators + timeout-minutes: 10 + run: sudo apt-get update && sudo apt-get install -y qemu-user qemu-user-binfmt + - name: Test under qemu (${{ matrix.goarch }}) + run: | + base="${{ matrix.qemu }}" + q="" + for cand in "$base" "${base%-static}"; do + command -v "$cand" >/dev/null 2>&1 && q="$cand" && break + done + # A missing emulator FAILS this lane: a lane that reports success for + # an architecture it never ran is the outcome this matrix rules out. + if [ -z "$q" ]; then + echo "::error::no qemu user emulator for ${{ matrix.goarch }} (looked for $base and ${base%-static})" + exit 1 + fi + echo "running ${{ matrix.goarch }} under $q" + GOARCH=${{ matrix.goarch }} go test -exec="$q" ./... diff --git a/README.md b/README.md index 6bef976..5aa434a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,107 @@ # decode -H.264 video decoder, bit-exact against ffmpeg + +[![ci](https://github.com/go-avkit/decode/actions/workflows/ci.yml/badge.svg)](https://github.com/go-avkit/decode/actions/workflows/ci.yml) + +Video decoders for [avkit](https://github.com/go-avkit/avkit), pure Go, no cgo. +The first codec is **H.264** (ITU-T H.264 | ISO/IEC 14496-10). Wave D1 of +[go-avkit/avkit#89](https://github.com/go-avkit/avkit/issues/89). + +```go +r, _ := container.NewReader(file) // MP4, Matroska, ... +frames, err := decode.DecodeTrack(r, trackID, decode.Config{}) +for _, f := range frames { // display order + use(f.Y, f.Cb, f.Cr, f.YStride, f.CStride, f.Width, f.Height, f.PTS) +} +``` + +Streaming: `decode.NewTrack(trackConfig, cfg)` or `decode.NewAVCC(avcC, cfg)`, +then `DecodeSample(sample.Data, pts)` per sample and `Flush()` at the end. +Raw `.264` files: `decode.New(cfg, 4)` and `DecodeAnnexB`. + +`Frame` carries the planes, strides, size, `Chroma` format, `BitDepth` and +`PTS`. Its field names match `go-videodsp/yuv.Picture` for 8-bit 4:2:0, so +converting to RGBA is a field copy; `yuv.Picture` has no bit depth or time, which +is why it is not used as is. + +## What is decoded + +The decoding is [`github.com/oops1/go.264`](https://github.com/oops1/go.264) +(BSD-2-Clause, pure Go with assembly kernels), pinned and forced onto its +software path. Where it is wrong it is fixed upstream by pull request. + +| Profile | State | +| --- | --- | +| Constrained Baseline, Baseline without FMO/ASO | bit-exact | +| Main, progressive (CAVLC and CABAC, B pictures, weighted prediction, multiple references, long-term references, MMCO) | bit-exact | +| High, 4:2:0 8-bit, progressive (8x8 transform, scaling matrices) | bit-exact on the streams below; no JVT FRExt stream measured yet | +| Interlaced (PAFF, MBAFF), FMO/ASO, Extended (SP/SI, data partitioning) | refused with `ErrUnsupported` | +| High 10, 4:2:2, 4:4:4, lossless | refused with `ErrUnsupported` | + +`Frame.BitDepth` and `Chroma` exist so the later profiles need no API change. + +## Measured + +Every picture's MD5 against `ffmpeg -f framemd5 -pix_fmt yuv420p`, single +thread, and against the reference yuv shipped in the suite where there is one. + +* **ITU-T H.264.1 conformance suite**, AVCv1: 81 bitstreams tried, 73 match ffmpeg (and + the suite's yuv where it ships one): 69 with go.264 v1.12.0 as pinned here, and + 4 more (MR2..MR5_TANDBERG) only with + [oops1/go.264#2](https://github.com/oops1/go.264/pull/2) "decoder: handle MMCO 5 + and gaps in frame_num"; they are listed in `pendingUpstream` until it is + released. The other 8 are not claimed: 5 interlaced, 3 use FMO/ASO (ffmpeg + cannot decode two of them either). ffmpeg's MD5s are in `testdata/jvt`; the + bitstreams are not in the repository (their redistribution terms are not + stated), so `TestJVTConformance` runs when `DECODE_JVT_DIR` points at them + (`go run ./tools/jvt fetch` downloads them). +* **29 streams in `testdata/streams`** (from go.264, BSD-2-Clause; Baseline, + Main, High) run in CI against ffmpeg's MD5s in the `.md5` files. +* **5 real files** (MP4 and Matroska, 720x300 to 1920x1080, x264), 900 pictures + each: `testdata/real-files.txt`, hashes only. + +## Bounds + +A stream is untrusted. `Config.MaxFrameMBs` (default 36864, a 4096x2304 picture) +and `MaxSampleBytes` (default 64 MiB) are checked before anything sized by the +stream is allocated; go.264 also refuses pictures past its level ceiling and +bounds its reference frames by `max_num_ref_frames`. `TestBombRefusedUnderMemoryLimit` +runs three bomb SPSs under a 256 MiB memory limit and asserts a refusal and under +8 MiB allocated. `FuzzParseAVCC`, `FuzzDecodeSample` and `FuzzDecodeAnnexB` have a +committed corpus (`testdata/fuzz`, from `go run ./tools/jvt seeds`) and run in CI. + +## Bibliography + +* ITU-T H.264 (V16, 06/2026, in force), opened as the PDF. Read and checked: + 7.3.2.1 (SPS syntax entry), 7.4.3 (frame_num semantics: a picture with + memory_management_control_operation 5 is inferred to have had frame_num 0; + Table 7-9), 8.2.1 (tempPicOrderCnt after operation 5; 8.2.1.1 to 8.2.1.3 + prevPicOrderCntMsb/Lsb and prevFrameNumOffset after it), 8.2.5.1 to 8.2.5.4 + (marking, gaps in frame_num, sliding window) and C.4.4 (output order and + operation 5). The fix upstream (oops1/go.264#2) follows those clauses, + including the rebased prevPicOrderCntLsb. ffmpeg (libavcodec h264_refs.c, + h264_picture.c, h264_slice.c, h264_parse.c, opened) sets frame_num to 0 on + MMCO_RESET and takes the frame order count as the Min of the two field + counts; I found no rebase of prev_poc_lsb in those files. The spec text is + the reference. +* ITU-T H.264.1, conformance specification and the bitstream list at + (listing + and each stream's readme opened). +* ISO/IEC 14496-15 (avcC): paywalled, **not opened**. The record layout is that + of mp4ff v0.62.0 `avc/avcdecoderconfigurationrecord.go` (opened), which + cites 14496-15 itself; it is fuzzed here. + +## Performance + +Not yet measured against ffmpeg: the machine's 1-minute load was 36 to 50 during +this work, above the limit for a measurement (8). Tracked in the issues. + +## Development + +``` +go test -race ./... # library, 100% of statements +cd tools && go run ./covergate ../cover.out # the gate (reads the profile) +cd tools && go test ./... # oracle harness +``` + +BSD-3-Clause. The streams in `testdata/streams` are from go.264 (BSD-2-Clause, +`testdata/streams/LICENSE.go264`). diff --git a/avcc.go b/avcc.go new file mode 100644 index 0000000..40be6a6 --- /dev/null +++ b/avcc.go @@ -0,0 +1,201 @@ +// Copyright (c) 2026, go-avkit +// SPDX-License-Identifier: BSD-3-Clause + +package decode + +import ( + "encoding/binary" + "fmt" + + "github.com/go-avkit/avkit/container" +) + +// AVCConfig is an AVCDecoderConfigurationRecord, the content of the avcC box +// (ISO/IEC 14496-15). The standard's text is paywalled and was not opened; the +// layout is that of mp4ff v0.62.0, avc/avcdecoderconfigurationrecord.go, which +// was. +type AVCConfig struct { + // Profile, Compatibility and Level are AVCProfileIndication, + // profile_compatibility and AVCLevelIndication, the first three bytes of + // the SPS after the NAL header. + Profile, Compatibility, Level uint8 + // LengthSize is the size in bytes of each NAL unit's length prefix: + // lengthSizeMinusOne + 1: 1, 2 or 4 (3 is reserved). + LengthSize int + // SPS and PPS are the parameter sets, as NAL units without a prefix. + SPS, PPS [][]byte +} + +// ParseAVCC parses an AVCDecoderConfigurationRecord. It reads the record only as +// far as the decoder needs: the extension fields a High profile record appends +// (chroma format, bit depths, SPS extensions) are bounds-checked but not kept, +// since the sequence parameter set itself is authoritative. +func ParseAVCC(b []byte) (AVCConfig, error) { + var c AVCConfig + if len(b) < 7 { + return c, fmt.Errorf("%w: avcC of %d bytes, the fixed part is 7", ErrConfig, len(b)) + } + if b[0] != 1 { + return c, fmt.Errorf("%w: avcC configurationVersion %d, want 1", ErrConfig, b[0]) + } + c.Profile, c.Compatibility, c.Level = b[1], b[2], b[3] + c.LengthSize = int(b[4]&3) + 1 + if c.LengthSize == 3 { + return c, fmt.Errorf("%w: avcC lengthSizeMinusOne 2 (3-byte lengths) is not allowed", ErrConfig) + } + n := int(b[5] & 31) + pos := 6 + var err error + if c.SPS, pos, err = avcSets(b, pos, n, "SPS"); err != nil { + return c, err + } + if pos >= len(b) { + return c, fmt.Errorf("%w: avcC ends before numOfPictureParameterSets", ErrConfig) + } + n = int(b[pos]) + if c.PPS, pos, err = avcSets(b, pos+1, n, "PPS"); err != nil { + return c, err + } + switch c.Profile { + case 66, 77, 88: + default: + // chroma_format, bit_depth_luma_minus8, bit_depth_chroma_minus8, + // numOfSequenceParameterSetExt and the extensions, for every profile + // but Baseline, Main and Extended (as mp4ff reads it). Absent in + // records written before the High profiles were added, which is + // tolerated. + if pos+4 <= len(b) { + if _, _, err = avcSets(b, pos+3, int(b[pos+3]), "SPS extension"); err != nil { + return c, err + } + } + } + return c, nil +} + +// avcSets reads n length-prefixed (16-bit) parameter sets at pos. +func avcSets(b []byte, pos, n int, what string) ([][]byte, int, error) { + var sets [][]byte + for range n { + if pos+2 > len(b) { + return nil, 0, fmt.Errorf("%w: avcC ends inside a %s length", ErrConfig, what) + } + l := int(binary.BigEndian.Uint16(b[pos:])) + pos += 2 + if l == 0 || l > len(b)-pos { + return nil, 0, fmt.Errorf("%w: avcC %s of %d bytes with %d left", ErrConfig, what, l, len(b)-pos) + } + sets = append(sets, b[pos:pos+l]) + pos += l + } + return sets, pos, nil +} + +// NewAVCC returns a decoder configured by an avcC record, as MP4 stores it. +func NewAVCC(avcC []byte, cfg Config) (*Decoder, error) { + c, err := ParseAVCC(avcC) + if err != nil { + return nil, err + } + return newWithSets(cfg, c.LengthSize, c.SPS, c.PPS) +} + +// NewTrack returns a decoder for an avkit container track. Samples are +// length-prefixed with four-byte lengths, which is what container.Reader hands +// over for MP4 and Matroska. The track's SPS and PPS are decoded first. +func NewTrack(tc container.TrackConfig, cfg Config) (*Decoder, error) { + return newWithSets(cfg, 4, tc.SPS, tc.PPS) +} + +func newWithSets(cfg Config, lengthSize int, sps, pps [][]byte) (*Decoder, error) { + d := newDecoder(cfg, lengthSize) + out := d.begin() + for _, set := range append(append([][]byte(nil), sps...), pps...) { + if len(set) == 0 { + return nil, fmt.Errorf("%w: empty parameter set", ErrConfig) + } + out = d.appendNAL(out, set) + } + d.annexB, d.started = out, true + if _, err := d.run(out); err != nil { + return nil, fmt.Errorf("decode: parameter set: %w", err) + } + return d, nil +} + +var startCode = []byte{0, 0, 0, 1} + +// appendNAL adds one NAL unit to an Annex B buffer. Every unit is followed by +// the next start code rather than preceded by it, so that the decoder, which +// holds back the last unit of what it has been given until the code that ends +// it arrives, acts on each unit at once: a parameter set that breaks a limit +// is refused in the call that carried it, not in the next one. +func (d *Decoder) appendNAL(out, nal []byte) []byte { + out = append(out, nal...) + return append(out, startCode...) +} + +// begin returns the buffer a stream's first call starts from: the very first +// start code, which no unit's trailer supplies. It must be called only when the +// buffer is certain to be handed over, or the code would be lost. +func (d *Decoder) begin() []byte { + out := d.annexB[:0] + if !d.started { + out = append(out, startCode...) + } + return out +} + +// toAnnexB rewrites one length-prefixed sample as Annex B. Every length is +// checked against what is left of the sample before anything is copied. +func (d *Decoder) toAnnexB(data []byte) ([]byte, error) { + out := d.begin() + for len(data) > 0 { + if len(data) < d.lengthSize { + return nil, fmt.Errorf("%w: %d bytes left, a length is %d", ErrSample, len(data), d.lengthSize) + } + var l uint32 + for _, c := range data[:d.lengthSize] { + l = l<<8 | uint32(c) + } + data = data[d.lengthSize:] + if l == 0 || uint64(l) > uint64(len(data)) { + return nil, fmt.Errorf("%w: NAL unit of %d bytes with %d left", ErrSample, l, len(data)) + } + out = d.appendNAL(out, data[:l]) + data = data[l:] + } + d.annexB, d.started = out, true + return out, nil +} + +// DecodeTrack decodes every sample of one video track of a demuxed file and +// returns the pictures in display order with their presentation times in the +// track's timescale. It is the whole-file form of NewTrack and DecodeSample. +func DecodeTrack(r *container.Reader, trackID uint32, cfg Config) ([]Frame, error) { + tc, err := r.TrackConfig(trackID) + var samples []container.Sample + if err == nil { + samples, err = r.Samples(trackID) + } + if err != nil { + return nil, err + } + d, err := NewTrack(tc, cfg) + if err != nil { + return nil, err + } + defer d.Close() + var out []Frame + var dts int64 + for _, s := range samples { + fs, err := d.DecodeSample(s.Data, dts+int64(s.CompositionOffset)) + out = append(out, fs...) + if err != nil { + return out, err + } + dts += int64(s.Duration) + } + fs, err := d.Flush() + return append(out, fs...), err +} diff --git a/decode.go b/decode.go new file mode 100644 index 0000000..496466a --- /dev/null +++ b/decode.go @@ -0,0 +1,281 @@ +// Copyright (c) 2026, go-avkit +// SPDX-License-Identifier: BSD-3-Clause + +// Package decode turns the coded video samples avkit's container package +// demuxes into pictures. +// +// The first codec is H.264 (ITU-T H.264 | ISO/IEC 14496-10), through +// github.com/oops1/go.264, a pure Go decoder that is checked here, picture for +// picture, against ffmpeg. See the README for the profiles that claim holds +// for and the conformance bitstreams it was measured on. +// +// Input is what a container hands over: an AVCDecoderConfigurationRecord +// (ISO/IEC 14496-15) or the parameter sets of a +// container.TrackConfig, then one length-prefixed access unit per sample. +// Output is every picture in display order as planar YUV, with its chroma +// format, bit depth and presentation time. +package decode + +import ( + "errors" + "fmt" + "slices" + "strings" + + "github.com/oops1/go.264" +) + +// Errors a decoder can refuse with. Each is matched with errors.Is. +var ( + // ErrConfig means the codec configuration (an avcC record or a track's + // parameter sets) is malformed. + ErrConfig = errors.New("decode: invalid codec configuration") + // ErrSample means a sample is not a well formed run of length-prefixed + // NAL units. + ErrSample = errors.New("decode: invalid sample") + // ErrOverLimit means the stream asks for more than Config allows: a + // picture larger than MaxFrameMBs, or a sample larger than MaxSampleBytes. + // It is raised before anything sized by the stream is allocated. + ErrOverLimit = errors.New("decode: stream exceeds the configured limits") + // ErrUnsupported means the stream uses a coding tool this decoder does + // not implement (see the README): interlaced coding, a chroma format + // other than 4:2:0, a bit depth above 8, lossless transform bypass. + ErrUnsupported = errors.New("decode: unsupported coding tool") + // ErrClosed means the decoder was used after Close. + ErrClosed = errors.New("decode: use of a closed decoder") +) + +// Default limits. A stream is untrusted input: the picture size in its +// sequence parameter set sizes every buffer the decoder allocates, so it is +// bounded before the first of them is. +const ( + // DefaultMaxFrameMBs is 36864 macroblocks, a 4096x2304 picture: level 5.1 + // of H.264 Annex A. + DefaultMaxFrameMBs = 36864 + // DefaultMaxSampleBytes is 64 MiB, far above any single access unit a + // level 6.2 stream can carry at its maximum bit rate and frame rate. + DefaultMaxSampleBytes = 64 << 20 +) + +// Config bounds what a stream may make the decoder allocate. A zero field takes +// its default. +type Config struct { + // MaxFrameMBs is the largest picture accepted, in 16x16 macroblocks. + MaxFrameMBs int + // MaxSampleBytes is the largest sample (access unit) accepted. + MaxSampleBytes int + // EnforceLevel also refuses a stream that exceeds its own declared + // level's limits (Annex A), where MaxFrameMBs alone would admit it. + EnforceLevel bool +} + +func (c Config) frameMBs() int { + if c.MaxFrameMBs > 0 { + return c.MaxFrameMBs + } + return DefaultMaxFrameMBs +} + +func (c Config) sampleBytes() int { + if c.MaxSampleBytes > 0 { + return c.MaxSampleBytes + } + return DefaultMaxSampleBytes +} + +// Chroma is the chroma sampling of a Frame. +type Chroma uint8 + +// The chroma formats of H.264 (chroma_format_idc). Only Chroma420 is +// produced today; the others are named so that a Frame can describe the +// profiles that are not decoded yet without an API change. +const ( + Chroma400 Chroma = iota + Chroma420 + Chroma422 + Chroma444 +) + +// Frame is one decoded picture, cropped to the stream's display window. +// +// The field names and meaning match go-videodsp/yuv.Picture for 8-bit 4:2:0 so +// that converting is a field-by-field copy. A Frame owns its planes. +type Frame struct { + // Y, Cb and Cr are the planes. A sample is one byte when BitDepth is 8 + // and a little-endian 16-bit word above that. A Chroma400 frame has no + // Cb or Cr. + Y, Cb, Cr []byte + // YStride and CStride are the plane row lengths in bytes. + YStride, CStride int + // Width and Height are the luma size in samples. + Width, Height int + // Chroma is the chroma sampling. + Chroma Chroma + // BitDepth is the luma bit depth. + BitDepth int + // PTS is the presentation time in the track timescale: the decode time + // of the sample plus its composition offset. For a raw Annex B stream it + // is the picture's index in display order. + PTS int64 +} + +// Decoder decodes one H.264 elementary stream. It is not safe for concurrent +// use. +type Decoder struct { + dec *go264.Decoder + cfg Config + lengthSize int + annexB []byte + pending []int64 // presentation times of samples not yet output, sorted + last int64 + nextIndex int64 + sampleMode bool + started bool + closed bool +} + +// New returns a decoder for length-prefixed samples with lengthSize-byte +// lengths (1, 2 or 4 as avcC allows; MP4 and Matroska use 4). The parameter +// sets must then arrive in-band, or through Config via NewAVCC or NewTrack. +func New(cfg Config, lengthSize int) (*Decoder, error) { + if lengthSize != 1 && lengthSize != 2 && lengthSize != 4 { + return nil, fmt.Errorf("%w: NAL length size %d, want 1, 2 or 4", ErrConfig, lengthSize) + } + return newDecoder(cfg, lengthSize), nil +} + +// newDecoder builds a decoder for a length size already known to be valid. +func newDecoder(cfg Config, lengthSize int) *Decoder { + d := &Decoder{cfg: cfg, lengthSize: lengthSize} + d.dec = go264.NewDecoderWithConfig(go264.DecoderConfig{ + // The pure Go path is the one that is checked bit for bit; a hardware + // decoder is free to differ in the last bit and is never chosen. + ForceSoftware: true, + Limits: go264.DecoderLimits{ + MaxFrameMBs: cfg.frameMBs(), + MaxNALBytes: cfg.sampleBytes(), + EnforceLevel: cfg.EnforceLevel, + }, + }) + return d +} + +// DecodeSample decodes one access unit in length-prefixed form, which is +// container.Sample.Data, and returns the pictures that became ready, in display +// order. pts is the sample's presentation time; it is attached to the pictures +// in increasing order as they come out, so it need not belong to the picture +// the sample itself contains. A picture can come out several samples late. +func (d *Decoder) DecodeSample(data []byte, pts int64) ([]Frame, error) { + if d.closed { + return nil, ErrClosed + } + if len(data) > d.cfg.sampleBytes() { + return nil, fmt.Errorf("%w: sample of %d bytes, the limit is %d", ErrOverLimit, len(data), d.cfg.sampleBytes()) + } + annexB, err := d.toAnnexB(data) + if err != nil { + return nil, err + } + d.sampleMode = true + i, _ := slices.BinarySearch(d.pending, pts) + d.pending = slices.Insert(d.pending, i, pts) + return d.run(annexB) +} + +// DecodeAnnexB decodes part of a raw Annex B byte stream (start code +// delimited, as in a .264 file). The pictures' PTS is their index in display +// order. The chunk need not end on a NAL unit boundary. +func (d *Decoder) DecodeAnnexB(data []byte) ([]Frame, error) { + if d.closed { + return nil, ErrClosed + } + if len(data) > d.cfg.sampleBytes() { + return nil, fmt.Errorf("%w: chunk of %d bytes, the limit is %d", ErrOverLimit, len(data), d.cfg.sampleBytes()) + } + return d.run(data) +} + +func (d *Decoder) run(annexB []byte) ([]Frame, error) { + pics, err := d.dec.Decode(annexB) + return d.collect(pics, err) +} + +// Flush returns the pictures still held for reordering. Call it at the end of +// the stream. +func (d *Decoder) Flush() ([]Frame, error) { + if d.closed { + return nil, ErrClosed + } + pics, err := d.dec.Flush() + return d.collect(pics, err) +} + +// Close releases the decoder. +func (d *Decoder) Close() error { + if d.closed { + return nil + } + d.closed = true + d.annexB, d.pending = nil, nil + return d.dec.Close() +} + +func (d *Decoder) collect(pics []*go264.Frame, err error) ([]Frame, error) { + var out []Frame + for _, p := range pics { + out = append(out, d.frame(p)) + } + return out, classify(err) +} + +// frame copies a decoder picture out of its reference buffer, packed, so the +// caller owns it however long it keeps it. +func (d *Decoder) frame(p *go264.Frame) Frame { + cw, ch := (p.Width+1)/2, (p.Height+1)/2 + f := Frame{ + Y: make([]byte, p.Width*p.Height), + Cb: make([]byte, cw*ch), + Cr: make([]byte, cw*ch), + YStride: p.Width, + CStride: cw, + Width: p.Width, + Height: p.Height, + Chroma: Chroma420, + BitDepth: 8, + } + for y := 0; y < p.Height; y++ { + copy(f.Y[y*p.Width:], p.Y[y*p.StrideY:y*p.StrideY+p.Width]) + } + for y := 0; y < ch; y++ { + copy(f.Cb[y*cw:], p.Cb[y*p.StrideC:y*p.StrideC+cw]) + copy(f.Cr[y*cw:], p.Cr[y*p.StrideC:y*p.StrideC+cw]) + } + switch { + case len(d.pending) > 0: + f.PTS, d.pending = d.pending[0], d.pending[1:] + d.last = f.PTS + case d.sampleMode: + // More pictures than samples (a sample holding several): the best + // time left is the last one given. + f.PTS = d.last + default: + f.PTS = d.nextIndex + } + d.nextIndex++ + return f +} + +// classify maps the decoder's errors onto this package's. +func classify(err error) error { + switch { + case err == nil: + return nil + case errors.Is(err, go264.ErrOverLimit): + return fmt.Errorf("%w: %w", ErrOverLimit, err) + // go.264 does not export its unsupported-feature sentinel (it lives in an + // internal package), so it is recognised by its text until it does. + case strings.Contains(err.Error(), "unsupported bitstream feature"): + return fmt.Errorf("%w: %w", ErrUnsupported, err) + } + return err +} diff --git a/decode_test.go b/decode_test.go new file mode 100644 index 0000000..4be08a6 --- /dev/null +++ b/decode_test.go @@ -0,0 +1,392 @@ +// Copyright (c) 2026, go-avkit +// SPDX-License-Identifier: BSD-3-Clause + +package decode + +import ( + "errors" + "runtime" + "runtime/debug" + "slices" + "strings" + "testing" +) + +func TestConformanceAnnexB(t *testing.T) { + for _, path := range streams(t) { + t.Run(path, func(t *testing.T) { + data := readFile(t, path) + want := reference(t, path) + for _, chunk := range []int{len(data), 997} { + d, err := New(Config{}, 4) + if err != nil { + t.Fatal(err) + } + var got []Frame + for rest := data; len(rest) > 0; { + n := min(chunk, len(rest)) + fs, err := d.DecodeAnnexB(rest[:n]) + if err != nil { + t.Fatal(err) + } + got = append(got, fs...) + rest = rest[n:] + } + fs, err := d.Flush() + if err != nil { + t.Fatal(err) + } + got = append(got, fs...) + if !slices.Equal(sums(got), want) { + t.Fatalf("chunk %d: %d pictures, ffmpeg has %d, or a picture differs", chunk, len(got), len(want)) + } + for i, f := range got { + if f.PTS != int64(i) || f.BitDepth != 8 || f.Chroma != Chroma420 { + t.Fatalf("picture %d: PTS %d depth %d chroma %d", i, f.PTS, f.BitDepth, f.Chroma) + } + } + if err := d.Close(); err != nil { + t.Fatal(err) + } + } + }) + } +} + +func TestConformanceSamples(t *testing.T) { + for _, path := range streams(t) { + t.Run(path, func(t *testing.T) { + data := readFile(t, path) + want := reference(t, path) + aus := accessUnits(splitNALs(data)) + sps, pps, slices_ := parameterSets(aus) + cases := map[string]func() (*Decoder, [][]byte){ + "in-band": func() (*Decoder, [][]byte) { + d, err := New(Config{}, 4) + if err != nil { + t.Fatal(err) + } + var s [][]byte + for _, au := range aus { + s = append(s, prefixed(au, 4)) + } + return d, s + }, + "avcC": func() (*Decoder, [][]byte) { + d, err := NewAVCC(avcC(sps, pps, 2, true), Config{}) + if err != nil { + t.Fatal(err) + } + var s [][]byte + for _, au := range slices_ { + s = append(s, prefixed(au, 2)) + } + return d, s + }, + } + for name, mk := range cases { + d, samples := mk() + var got []Frame + for i, s := range samples { + fs, err := d.DecodeSample(s, int64(i)*3+7) + if err != nil { + t.Fatalf("%s: sample %d: %v", name, i, err) + } + got = append(got, fs...) + } + fs, err := d.Flush() + if err != nil { + t.Fatal(err) + } + got = append(got, fs...) + if !slices.Equal(sums(got), want) { + t.Fatalf("%s: %d pictures, ffmpeg has %d, or a picture differs", name, len(got), len(want)) + } + for i, f := range got { + if f.PTS != int64(i)*3+7 { + t.Fatalf("%s: picture %d has PTS %d, want %d", name, i, f.PTS, int64(i)*3+7) + } + } + } + }) + } +} + +// One sample holding every picture: the first gets the sample's time, the +// rest the last time given. +func TestSampleHoldingManyPictures(t *testing.T) { + path := "testdata/streams/main_ip_cabac.264" + var all [][]byte + for _, au := range accessUnits(splitNALs(readFile(t, path))) { + all = append(all, au...) + } + d, err := New(Config{}, 4) + if err != nil { + t.Fatal(err) + } + got, err := d.DecodeSample(prefixed(all, 4), 42) + if err != nil { + t.Fatal(err) + } + fs, err := d.Flush() + if err != nil { + t.Fatal(err) + } + got = append(got, fs...) + if !slices.Equal(sums(got), reference(t, path)) { + t.Fatal("pictures differ") + } + for i, f := range got { + if f.PTS != 42 { + t.Fatalf("picture %d has PTS %d, want 42", i, f.PTS) + } + } +} + +func TestUseAfterClose(t *testing.T) { + d, err := New(Config{}, 4) + if err != nil { + t.Fatal(err) + } + if err := d.Close(); err != nil { + t.Fatal(err) + } + if err := d.Close(); err != nil { + t.Fatalf("second Close: %v", err) + } + if _, err := d.DecodeSample([]byte{0, 0, 0, 1, 9}, 0); !errors.Is(err, ErrClosed) { + t.Fatalf("DecodeSample: %v", err) + } + if _, err := d.DecodeAnnexB([]byte{0, 0, 1, 9}); !errors.Is(err, ErrClosed) { + t.Fatalf("DecodeAnnexB: %v", err) + } + if _, err := d.Flush(); !errors.Is(err, ErrClosed) { + t.Fatalf("Flush: %v", err) + } +} + +func TestNewRefusals(t *testing.T) { + for _, n := range []int{0, 3, 5, -1} { + if _, err := New(Config{}, n); !errors.Is(err, ErrConfig) { + t.Errorf("length size %d: %v", n, err) + } + } +} + +func TestSampleRefusals(t *testing.T) { + d, err := New(Config{MaxSampleBytes: 16}, 4) + if err != nil { + t.Fatal(err) + } + cases := map[string]struct { + data []byte + want error + }{ + "oversize": {make([]byte, 17), ErrOverLimit}, + "short length": {[]byte{0, 0}, ErrSample}, + "zero length": {[]byte{0, 0, 0, 0}, ErrSample}, + "past the end": {[]byte{0, 0, 0, 9, 1, 2}, ErrSample}, + "length > int": {[]byte{0xff, 0xff, 0xff, 0xff, 1}, ErrSample}, + "trailing junk": {[]byte{0, 0, 0, 1, 9, 0}, ErrSample}, + } + for name, c := range cases { + if _, err := d.DecodeSample(c.data, 0); !errors.Is(err, c.want) { + t.Errorf("%s: %v, want %v", name, err, c.want) + } + } + if _, err := d.DecodeAnnexB(make([]byte, 17)); !errors.Is(err, ErrOverLimit) { + t.Errorf("annexb oversize: %v", err) + } +} + +func TestParseAVCC(t *testing.T) { + sps := []byte{0x67, 66, 0xc0, 10, 1, 2, 3} + pps := []byte{0x68, 9} + good := avcC([][]byte{sps}, [][]byte{pps}, 4, false) + c, err := ParseAVCC(good) + if err != nil { + t.Fatal(err) + } + if c.Profile != 66 || c.Compatibility != 0xc0 || c.Level != 10 || c.LengthSize != 4 || + len(c.SPS) != 1 || len(c.PPS) != 1 || string(c.SPS[0]) != string(sps) || string(c.PPS[0]) != string(pps) { + t.Fatalf("parsed %+v", c) + } + high := []byte{0x67, 100, 0, 30, 1} + if _, err := ParseAVCC(avcC([][]byte{high}, [][]byte{pps}, 1, true)); err != nil { + t.Fatalf("high record: %v", err) + } + // A High record that stops before the extension fields is tolerated. + if _, err := ParseAVCC(avcC([][]byte{high}, [][]byte{pps}, 1, false)); err != nil { + t.Fatalf("high record without extension: %v", err) + } + extLen := func(b []byte) []byte { return append(b[:len(b)-1:len(b)-1], 1, 0, 5, 1) } + bad := map[string][]byte{ + "short": good[:6], + "version": append([]byte{2}, good[1:]...), + "length size 3": append([]byte{1, 66, 0xc0, 10, 0xfe}, good[5:]...), + "cut in SPS len": good[:7], + "SPS past end": good[:8], + "SPS zero length": {1, 66, 0, 10, 0xff, 0xe1, 0, 0, 1}, + "no PPS count": good[:6+2+len(sps)], + "PPS cut": good[:len(good)-1], + "extension cut": extLen(avcC([][]byte{high}, [][]byte{pps}, 1, true)), + "zero PPS length": append(append([]byte(nil), good[:6+2+len(sps)]...), 1, 0, 0), + } + for name, b := range bad { + if _, err := ParseAVCC(b); !errors.Is(err, ErrConfig) { + t.Errorf("%s: %v", name, err) + } + } + if _, err := NewAVCC(good[:3], Config{}); !errors.Is(err, ErrConfig) { + t.Errorf("NewAVCC: %v", err) + } +} + +func TestParameterSetRefusals(t *testing.T) { + if _, err := newWithSets(Config{}, 4, [][]byte{{}}, nil); !errors.Is(err, ErrConfig) { + t.Errorf("empty set: %v", err) + } + // An SPS that cannot be parsed is the decoder's error, passed through. + if _, err := newWithSets(Config{}, 4, [][]byte{{0x67, 0xff}}, nil); err == nil { + t.Error("a truncated SPS was accepted") + } +} + +// sps writes a Main profile sequence parameter set (H.264 clause 7.3.2.1, seq_parameter_set_data) +// for a picture of w x h macroblocks. +func sps(w, h int, frameMbsOnly bool) []byte { + var b bitWriter + b.bits(77, 8) + b.bits(0, 8) + b.bits(40, 8) + b.ue(0) // seq_parameter_set_id + b.ue(0) // log2_max_frame_num_minus4 + b.ue(0) // pic_order_cnt_type + b.ue(0) // log2_max_pic_order_cnt_lsb_minus4 + b.ue(1) // max_num_ref_frames + b.bits(0, 1) + b.ue(uint(w - 1)) + b.ue(uint(h - 1)) + if frameMbsOnly { + b.bits(1, 1) + } else { + b.bits(0, 1) + b.bits(0, 1) // mb_adaptive_frame_field_flag + } + b.bits(1, 1) // direct_8x8_inference_flag + b.bits(0, 1) // frame_cropping_flag + b.bits(0, 1) // vui_parameters_present_flag + b.bits(1, 1) // rbsp_stop_one_bit + return append([]byte{0x67}, b.bytes()...) +} + +type bitWriter struct { + buf []byte + nbit int +} + +func (w *bitWriter) bits(v uint, n int) { + for i := n - 1; i >= 0; i-- { + if w.nbit%8 == 0 { + w.buf = append(w.buf, 0) + } + w.buf[len(w.buf)-1] |= byte(v>>uint(i)&1) << (7 - w.nbit%8) + w.nbit++ + } +} + +func (w *bitWriter) ue(v uint) { + v++ + n := 0 + for x := v; x > 1; x >>= 1 { + n++ + } + w.bits(0, n) + w.bits(v, n+1) +} + +func (w *bitWriter) bytes() []byte { return w.buf } + +var errAny = errors.New("any refusal") + +func TestUnsupportedAndOversize(t *testing.T) { + cases := map[string]struct { + sps []byte + want error + }{ + "interlaced": {sps(11, 9, false), ErrUnsupported}, + "too many MBs": {sps(1024, 1024, true), ErrOverLimit}, + // Past the decoder's own ceiling the SPS parser refuses it as out of + // range, before any limit of ours is consulted. + "level ceiling": {sps(4096, 4096, true), errAny}, + "just inside": {sps(192, 192, true), nil}, + } + for name, c := range cases { + _, err := newWithSets(Config{}, 4, [][]byte{c.sps}, nil) + if c.want == nil { + if err != nil { + t.Errorf("%s: %v", name, err) + } + continue + } + if c.want == errAny && err != nil { + continue + } + if !errors.Is(err, c.want) { + t.Errorf("%s: %v, want %v", name, err, c.want) + } + } + if _, err := newWithSets(Config{EnforceLevel: true}, 4, [][]byte{sps(192, 192, true)}, nil); !errors.Is(err, ErrOverLimit) { + t.Errorf("a level 4.0 stream of 36864 macroblocks passed EnforceLevel: %v", err) + } +} + +// A bomb is a stream whose parameter set sizes the buffers: it has to be +// refused before they exist. The heap is capped, and what the refusals together +// allocate is measured. +func TestBombRefusedUnderMemoryLimit(t *testing.T) { + old := debug.SetMemoryLimit(256 << 20) + defer debug.SetMemoryLimit(old) + var before, after runtime.MemStats + runtime.GC() + runtime.ReadMemStats(&before) + for _, s := range [][]byte{sps(1024, 1024, true), sps(8192, 8192, true), sps(1<<14, 1<<14, true)} { + d, err := New(Config{}, 4) + if err != nil { + t.Fatal(err) + } + _, err = d.DecodeSample(prefixed([][]byte{s}, 4), 0) + if err == nil { + t.Fatalf("bomb of %d bytes was accepted", len(s)) + } + d.Close() + } + runtime.ReadMemStats(&after) + if grown := after.TotalAlloc - before.TotalAlloc; grown > 8<<20 { + t.Fatalf("refusing three bombs allocated %d bytes", grown) + } +} + +func TestClassify(t *testing.T) { + if classify(nil) != nil { + t.Error("nil") + } + plain := errors.New("boom") + if got := classify(plain); got != plain { + t.Errorf("plain: %v", got) + } + if got := classify(errors.New("x: unsupported bitstream feature: y")); !errors.Is(got, ErrUnsupported) || !strings.Contains(got.Error(), "y") { + t.Errorf("unsupported: %v", got) + } +} + +func TestDefaults(t *testing.T) { + var c Config + if c.frameMBs() != DefaultMaxFrameMBs || c.sampleBytes() != DefaultMaxSampleBytes { + t.Error("defaults") + } + c = Config{MaxFrameMBs: 5, MaxSampleBytes: 6} + if c.frameMBs() != 5 || c.sampleBytes() != 6 { + t.Error("explicit") + } +} diff --git a/fuzz_test.go b/fuzz_test.go new file mode 100644 index 0000000..99baf43 --- /dev/null +++ b/fuzz_test.go @@ -0,0 +1,86 @@ +// Copyright (c) 2026, go-avkit +// SPDX-License-Identifier: BSD-3-Clause + +package decode + +import ( + "os" + "path/filepath" + "testing" +) + +// The fuzz targets exercise every entry point that takes bytes from a file: the +// avcC record, a length-prefixed sample, and a raw Annex B chunk. What they +// assert is that nothing panics, and that the work a stream can demand stays +// inside the configured bounds. The corpus is in testdata/fuzz, written by +// `jvt seeds` from the committed streams (real streams cut short, so that +// mutation starts from well formed parameter sets and slice headers). +// +// A frame limit of 396 macroblocks (CIF) keeps each execution fast and is the +// bound under test: a mutated SPS asking for more must be refused, not decoded. +var fuzzConfig = Config{MaxFrameMBs: 396, MaxSampleBytes: 1 << 20} + +func FuzzParseAVCC(f *testing.F) { + f.Fuzz(func(t *testing.T, b []byte) { + c, err := ParseAVCC(b) + if err != nil { + return + } + for _, s := range append(c.SPS, c.PPS...) { + if len(s) == 0 || len(s) > len(b) { + t.Fatalf("parameter set of %d bytes from a record of %d", len(s), len(b)) + } + } + if c.LengthSize != 1 && c.LengthSize != 2 && c.LengthSize != 4 { + t.Fatalf("length size %d", c.LengthSize) + } + }) +} + +func FuzzDecodeSample(f *testing.F) { + f.Fuzz(func(t *testing.T, b []byte) { + d, err := New(fuzzConfig, 4) + if err != nil { + t.Fatal(err) + } + defer d.Close() + frames, _ := d.DecodeSample(b, 0) + more, _ := d.DecodeSample(b, 1) + last, _ := d.Flush() + for _, fr := range append(append(frames, more...), last...) { + if fr.Width <= 0 || fr.Height <= 0 || fr.Width*fr.Height > fuzzConfig.MaxFrameMBs*256 { + t.Fatalf("picture %dx%d breaks the %d macroblock bound", fr.Width, fr.Height, fuzzConfig.MaxFrameMBs) + } + } + }) +} + +func FuzzDecodeAnnexB(f *testing.F) { + f.Fuzz(func(t *testing.T, b []byte) { + d, err := New(fuzzConfig, 4) + if err != nil { + t.Fatal(err) + } + defer d.Close() + half := len(b) / 2 + frames, _ := d.DecodeAnnexB(b[:half]) + more, _ := d.DecodeAnnexB(b[half:]) + last, _ := d.Flush() + for _, fr := range append(append(frames, more...), last...) { + if fr.Width <= 0 || fr.Height <= 0 || fr.Width*fr.Height > fuzzConfig.MaxFrameMBs*256 { + t.Fatalf("picture %dx%d breaks the %d macroblock bound", fr.Width, fr.Height, fuzzConfig.MaxFrameMBs) + } + } + }) +} + +// The committed corpus must exist, or `go test` would run the targets on +// nothing and the fuzzing above would look like it was covered. +func TestFuzzCorpusIsCommitted(t *testing.T) { + for _, target := range []string{"FuzzParseAVCC", "FuzzDecodeSample", "FuzzDecodeAnnexB"} { + entries, err := os.ReadDir(filepath.Join("testdata", "fuzz", target)) + if err != nil || len(entries) < 10 { + t.Errorf("%s: corpus of %d entries (%v), want the seeds from `jvt seeds`", target, len(entries), err) + } + } +} diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..a6e8390 --- /dev/null +++ b/go.mod @@ -0,0 +1,16 @@ +module github.com/go-avkit/decode + +go 1.27.1 + +require ( + github.com/go-avkit/avkit v0.13.0 + github.com/oops1/go.264 v1.12.0 +) + +require ( + github.com/Eyevinn/mp4ff v0.62.0 // indirect + github.com/asticode/go-astikit v0.30.0 // indirect + github.com/asticode/go-astits v1.17.0 // indirect + github.com/at-wat/ebml-go v0.19.4 // indirect + github.com/ebitengine/purego v0.9.0 // indirect +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..fcb3279 --- /dev/null +++ b/go.sum @@ -0,0 +1,24 @@ +github.com/Eyevinn/mp4ff v0.62.0 h1:Vx4U0xUfSdcwEgw1wBbTZ53+yZhlJpT7eIAkLUDaxmM= +github.com/Eyevinn/mp4ff v0.62.0/go.mod h1:97zsDIJUiDTYqKpqq/b1K9foamxXmvsgE4GdPrPK3ks= +github.com/asticode/go-astikit v0.30.0 h1:DkBkRQRIxYcknlaU7W7ksNfn4gMFsB0tqMJflxkRsZA= +github.com/asticode/go-astikit v0.30.0/go.mod h1:h4ly7idim1tNhaVkdVBeXQZEE3L0xblP7fCWbgwipF0= +github.com/asticode/go-astits v1.17.0 h1:KrDxalNhZ/GJkbgVweD5xxCA9XoaW7tHuFiJB/sAZxs= +github.com/asticode/go-astits v1.17.0/go.mod h1:psImoC1BhcAWIsyM/RnbO1OgUW+XSf8fZpFvF5McDyo= +github.com/at-wat/ebml-go v0.19.4 h1:6F767ThzH/JqNUsF79PwRFP0pwUF5ALXWJ6pXuiolI8= +github.com/at-wat/ebml-go v0.19.4/go.mod h1:wu3fQj+DWo6SOOl9c4yDi+gFs9Oa96Z2B5qxo1OxFYY= +github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/ebitengine/purego v0.9.0 h1:mh0zpKBIXDceC63hpvPuGLiJ8ZAa3DfrFTudmfi8A4k= +github.com/ebitengine/purego v0.9.0/go.mod h1:iIjxzd6CiRiOG0UyXP+V1+jWqUXVjPKLAI0mRfJZTmQ= +github.com/go-avkit/avkit v0.13.0 h1:aeRvSvu4beVmToykL9YiqeZN3MIQA3aXsbN/w0gRCBY= +github.com/go-avkit/avkit v0.13.0/go.mod h1:e6vXhNYj/ccY7454oZNTeSuKA7C4cBPA3usz3d6jxjA= +github.com/go-test/deep v1.1.0 h1:WOcxcdHcvdgThNXjw0t76K42FXTU7HpNQWHpA2HHNlg= +github.com/go-test/deep v1.1.0/go.mod h1:5C2ZWiW0ErCdrYzpqxLbTX7MG14M9iiw8DgHncVwcsE= +github.com/oops1/go.264 v1.12.0 h1:72uGb5MAyX83lSrK3aMvxYtxdQHOct7E4bD8YoJxbBU= +github.com/oops1/go.264 v1.12.0/go.mod h1:9QWDhblzn+OCeWpxJLpIfr/G/N5MSf849wVixp4Hzas= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/helpers_test.go b/helpers_test.go new file mode 100644 index 0000000..4620bb1 --- /dev/null +++ b/helpers_test.go @@ -0,0 +1,161 @@ +// Copyright (c) 2026, go-avkit +// SPDX-License-Identifier: BSD-3-Clause + +package decode + +import ( + "bytes" + "crypto/md5" + "encoding/binary" + "encoding/hex" + "os" + "path/filepath" + "strings" + "testing" +) + +// streams returns the committed bitstreams: testdata/streams/NAME.264, each +// with the NAME.md5 that ffmpeg -f framemd5 produced for it. +func streams(t *testing.T) []string { + t.Helper() + paths, err := filepath.Glob(filepath.Join("testdata", "streams", "*.264")) + if err != nil || len(paths) == 0 { + t.Fatalf("no test streams: %v", err) + } + return paths +} + +func readFile(t *testing.T, path string) []byte { + t.Helper() + b, err := os.ReadFile(path) + if err != nil { + t.Fatal(err) + } + return b +} + +// reference returns ffmpeg's per-picture MD5s for a stream. +func reference(t *testing.T, stream string) []string { + t.Helper() + var md5s []string + for _, l := range strings.Split(string(readFile(t, strings.TrimSuffix(stream, ".264")+".md5")), "\n") { + // A checkout with autocrlf (Windows) ends the lines with \r\n. + l = strings.TrimRight(l, "\r") + if l != "" && l[0] != '#' { + md5s = append(md5s, l) + } + } + return md5s +} + +func sum(f Frame) string { + h := md5.New() + h.Write(f.Y) + h.Write(f.Cb) + h.Write(f.Cr) + return hex.EncodeToString(h.Sum(nil)) +} + +func sums(fs []Frame) []string { + var out []string + for _, f := range fs { + out = append(out, sum(f)) + } + return out +} + +// splitNALs cuts an Annex B stream (4-byte or 3-byte start codes) into NAL +// units without their start codes. +func splitNALs(b []byte) [][]byte { + var nals [][]byte + start := -1 + for i := 0; i+2 < len(b); i++ { + if b[i] == 0 && b[i+1] == 0 && b[i+2] == 1 { + if start >= 0 { + nals = append(nals, bytes.TrimRight(b[start:i], "\x00")) + } + start = i + 3 + i += 2 + } + } + return append(nals, b[start:]) +} + +// accessUnits groups NAL units into access units: a new one starts at an +// AUD/SPS/PPS/SEI that follows a slice, and at a slice with first_mb_in_slice +// 0 (its first RBSP bit is the ue(v) code '1'). +func accessUnits(nals [][]byte) [][][]byte { + var aus [][][]byte + sawSlice := false + for _, n := range nals { + typ := n[0] & 31 + slice := typ == 1 || typ == 5 + if sawSlice && ((slice && n[1]&0x80 != 0) || (typ >= 6 && typ <= 9)) { + sawSlice = false + aus = append(aus, nil) + } + if len(aus) == 0 { + aus = append(aus, nil) + } + aus[len(aus)-1] = append(aus[len(aus)-1], n) + sawSlice = sawSlice || slice + } + return aus +} + +// prefixed writes NAL units as one length-prefixed sample. +func prefixed(nals [][]byte, size int) []byte { + var out []byte + for _, n := range nals { + switch size { + case 1: + out = append(out, byte(len(n))) + case 2: + out = binary.BigEndian.AppendUint16(out, uint16(len(n))) + default: + out = binary.BigEndian.AppendUint32(out, uint32(len(n))) + } + out = append(out, n...) + } + return out +} + +// parameterSets splits an access unit list into SPS NALs, PPS NALs and the +// slice samples (every unit that is not a parameter set). +func parameterSets(aus [][][]byte) (sps, pps [][]byte, samples [][][]byte) { + for _, au := range aus { + var rest [][]byte + for _, n := range au { + switch n[0] & 31 { + case 7: + sps = append(sps, n) + case 8: + pps = append(pps, n) + default: + rest = append(rest, n) + } + } + if len(rest) > 0 { + samples = append(samples, rest) + } + } + return +} + +// avcC builds an AVCDecoderConfigurationRecord (layout as in mp4ff's avc package). +func avcC(sps, pps [][]byte, lengthSize int, high bool) []byte { + b := []byte{1, sps[0][1], sps[0][2], sps[0][3], 0xfc | byte(lengthSize-1), 0xe0 | byte(len(sps))} + for _, s := range sps { + b = binary.BigEndian.AppendUint16(b, uint16(len(s))) + b = append(b, s...) + } + b = append(b, byte(len(pps))) + for _, p := range pps { + b = binary.BigEndian.AppendUint16(b, uint16(len(p))) + b = append(b, p...) + } + if high { + b = append(b, 0xfc|1, 0xf8, 0xf8, 0) + } + return b +} diff --git a/jvt_test.go b/jvt_test.go new file mode 100644 index 0000000..a575e79 --- /dev/null +++ b/jvt_test.go @@ -0,0 +1,80 @@ +// Copyright (c) 2026, go-avkit +// SPDX-License-Identifier: BSD-3-Clause + +package decode + +import ( + "os" + "path/filepath" + "slices" + "strings" + "testing" +) + +// pendingUpstream lists the conformance bitstreams that fail with the pinned +// go.264 and pass with go-oops1/go.264 PR "decoder: handle MMCO 5 and gaps in +// frame_num". They are expected to fail here until that fix is released and +// go.mod is moved to it; the test then fails on the unexpected pass, so this +// list cannot go stale. +var pendingUpstream = map[string]bool{ + "MR2_TANDBERG_E": true, + "MR3_TANDBERG_B": true, + "MR4_TANDBERG_C": true, + "MR5_TANDBERG_C": true, +} + +// TestJVTConformance decodes ITU-T H.264.1 conformance bitstreams and compares +// every picture's MD5 with what ffmpeg -f framemd5 produced for it (the +// testdata/jvt/NAME.md5 files). The bitstreams are not in this repository: set +// DECODE_JVT_DIR to a directory holding NAME/NAME.264 (or .jsv, .jvt, ...) as +// `jvt fetch` unpacks them, from +// https://www.itu.int/wftp3/av-arch/jvt-site/draft_conformance/AVCv1/ +func TestJVTConformance(t *testing.T) { + dir := os.Getenv("DECODE_JVT_DIR") + if dir == "" { + t.Skip("DECODE_JVT_DIR is not set") + } + manifests, err := filepath.Glob(filepath.Join("testdata", "jvt", "*.md5")) + if err != nil || len(manifests) == 0 { + t.Fatalf("no manifests: %v", err) + } + for _, m := range manifests { + name := strings.TrimSuffix(filepath.Base(m), ".md5") + t.Run(name, func(t *testing.T) { + var stream string + for _, ext := range []string{".264", ".jsv", ".jvt", ".avc", ".26l", ".h264", ".bit", ".bits"} { + if _, err := os.Stat(filepath.Join(dir, name, name+ext)); err == nil { + stream = filepath.Join(dir, name, name+ext) + break + } + } + if stream == "" { + t.Skipf("%s is not in %s", name, dir) + } + d, err := New(Config{MaxFrameMBs: 1 << 17}, 4) + if err != nil { + t.Fatal(err) + } + defer d.Close() + frames, err := d.DecodeAnnexB(readFile(t, stream)) + if err != nil { + t.Fatal(err) + } + rest, err := d.Flush() + if err != nil { + t.Fatal(err) + } + got := sums(append(frames, rest...)) + want := reference(t, strings.TrimSuffix(m, ".md5")+".264") + match := slices.Equal(got, want) + switch { + case pendingUpstream[name] && match: + t.Fatalf("%s now matches: remove it from pendingUpstream", name) + case pendingUpstream[name]: + t.Skipf("%s: known failure with the pinned go.264, fixed upstream", name) + case !match: + t.Fatalf("%d pictures, ffmpeg has %d, or a picture differs", len(got), len(want)) + } + }) + } +} diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..87842c8 --- /dev/null +++ b/renovate.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["github>go-avkit/.github"] +} diff --git a/testdata/fuzz/FuzzDecodeAnnexB/seed-base_intra_nodb b/testdata/fuzz/FuzzDecodeAnnexB/seed-base_intra_nodb new file mode 100644 index 0000000..2b61868 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeAnnexB/seed-base_intra_nodb @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x01gB\xc0\n\xdc,N\x84\x00\x00\x03\x00\x04\x00\x00\x03\x00P\x82[\xaf\xfbk\x8e\x8c\t\x9dB\xf1\xea\xf5+\x8c\r\x99Bn\xafP:̚8/\xc7\xf7\xca\x0e+.\xae\x1b7\xfb\xe0@\x00P\x01\a.\x10\x00\x97\x80\x00\x80 \x00\xdf3\x121\xd0#\xb7\x8b<\x1c\x1a\xe7F\x93\xf9\x03\x9b\xff\xf6\x98\n\xe6$\xa3j`\x06\xeb\x8a*\xb0\xa86\x04t\xa9\xce\xf5\x80\x8c#\xff\xbf\x18\x15\x98\xec\x1bS\x88\xa8\b\x83E\x80X\x7f\xe7Q\x91\x18]\xff\xc9\xff\xc0\xf0\x10\x93\x11IZ\xa0L\x98\xdf!2㸝\xfe\xa5тGP\xa8\xd5\xe0j\xecJ˜s\xd5\xeb\x1b\x90\x92C\xf1g\xfb\xe7&.ʨ\x83\xa8\x1b\xaf\x16d\xc2y\xea\xf5\xa5:\x06\xc4,\x1bo\x9cLy\x15\xaa\x0e\xaa\x0e*.\xaa\x13;\xfb\xe0\x182\x04LG2\xf4;\xc6\xd1y\xe1\xf4\x16\xa2\xb4Ԃ\x8b\xff\xef\xcb\xe0;\xe0\xe4O\xffpHe\x19Ѱ\x05\x8e\x17m\x8e¹X\xe07柇lO\xdf`\xbd$\x86EI\x7f}\x11W\x11P&ˬ\x17\xfc\x99&*\xb6\xf8\x9c\xaf1\xe4h\xf8]W\xff\xbe\xe4\xc9\x18\xab\xff\x1b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ii2\xcf\xe5\xffڬ\xcd\x10\xa2⩻\xfc\r\x80\x00\x80\xeb/\x9dCfrw_\v\xff\xee\"\xf1\x95\x18\xd1\xd0\x7f#\xffԺ0\x91T\\\xd5\xeaW\x18h\x8a&\xea\xf5\aQ\x13E\v\xb3\xfd\U0008328b\xaa\x84\xcd\xfe\xf9p\xd41\xb9>l\x1e\xaf]'\f~G\x99\xe7\xab\xd4\x0e\xb32G\x02\xff\xff|\xa0q\xd9Ҹ\x13\x93\xfd\xf0 \x00.\x01\x01/\x05\x00\xd3\x1d\x1b\x00bʙD\x04\x9d\x00A\xb56\v\x88R\x8d\xa9\x88\x00%A\b\xab\x1bS\x8a0\xb8ڙY\xb4\x83\x1bS`\x14\xee[\x06\xd4\xc4") diff --git a/testdata/fuzz/FuzzDecodeAnnexB/seed-base_intra_qp26 b/testdata/fuzz/FuzzDecodeAnnexB/seed-base_intra_qp26 new file mode 100644 index 0000000..ff81b98 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeAnnexB/seed-base_intra_qp26 @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x01gB\xc0\n\xdc,N\x84\x00\x00\x03\x00\x04\x00\x00\x03\x00P\xb7\x0f\x10\x8f\xffrd\x00\xcb8\x10D\x01\xee\x10x\xcal\xc1Xh\x840\xc6\r\xc6F\xd8\x1d\xb0\x9f\xbeнDJ\x87\x19=\x12\xff\xf4Eb*$\xd9\x06\xb0@\xfejCfsr\xd5\\\xdcD\xf0΄\x12\x93\x85\xa4\xcf\xff~jCfsr\u07b9\x83\xb5\x1aA\x86B\xd2/\a\xab\xdaX\x91\xf6A\xf3\x12\xa4?\xfa\xc0\xe9\bɊ\x02\xca\xe7\xfb\xea\x01␩\xca\x03!\xbf\xdf-F\x90a\x90\xb4\x8b\xc1\xea\xf0)\x9aa)\x0eAPz\xbd \x00\xf2\x10\x89\x8a\x03\xa5\xfd\xff\xae\x10\xc4\xd5%jA\xd4\x19\b\xac Ed\xaaI\x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\x9cA\x00\xa3\x01\xbc\xc0\xb9\x1c\xc0\xb9,\xb9\xd2Yr\x90_\x8a)\x93\xa3\xff\xff\xdfq\xb8\f\x03\xfd\xbf\xf8B\xc7\xc3\xea\xb7 \x1b\xc0q\x98\xb5\xab\xcfT\x14\xaf\x9f\xcfx\xb5\xb7\x90\xa8\f\xeb\xfd\xbf\xf9~?\x0fڈ9<\x1f\xc0\tz\\y_i*\x93H-b\xcb#ް\x94\x19\x00\xcff{\x90\x19\x1f\x8d\x13\xff\xbf5}\x11+g\xe7\xe7X\fK\xc3c\x7f\x19\x15\xff\x1f\xdb\xe2\x01S\x02\x1bM\r\xcd\xec\xcf:=\xef͎\x9d\x9e\xdf\f\x8000\aCd\xec\xb8\x04wY\t\x19\xf4D\xff\xe7\xc3v\xf3\xa1=l\xfc\xff\xf0\x11\xc3\x0f\x01\xfd~\x05͖Odz\xf0\xe3\xdeE\xc2Bc\x84\xa0E̾\x94\xd3\xcf\xf5\x13\xe0vv.\xe8\x8c\xeb\xf8D^\x93\x17\x7f\xffx\x03=&\xf9\f\x9c3m\xb55\xff\xfb\xe6֓ io\x058\x00Fo\xba\xee\x85,\"F|\x8a}\x87\x8eB!{W\xa7\x9b\xd6\x18`\x1f\xf0W\xc3^\xc30\xe0`\x00x\x113\xce߀ϔ\x8c\x80!!\xcb\x0f\xe0\x18\a\xc3A\xcf\bER\xc1e\x84\xa0\x8fX") diff --git a/testdata/fuzz/FuzzDecodeAnnexB/seed-base_ip_ref3 b/testdata/fuzz/FuzzDecodeAnnexB/seed-base_ip_ref3 new file mode 100644 index 0000000..b3a2869 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeAnnexB/seed-base_ip_ref3 @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x01gB\xc0\n\xd9\x02\xc4\xe8@\x00\x00\x03\x00@\x00\x00\x05\x03ĉ\x92\x00\x00\x00\x01h˂K \x00\x00\x01\x06\x05\xff\xff.\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=0 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=25 keyint_min=2 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=28 ip_ratio=1.40 aq=0\x00\x80\x00\x00\x01e\x88\x84?\xc4\"+\x06\x04!\xf8\bQ\xb3\x00\x0fZ\x86\xb0k\x80\x13\x13\xc3:\x10JN\x16\x93?\xfc\xcc\xfd\xd21\"\x93\x96\xff\x04\xe2/\f\xa4cB\xa0\x7fg\xff\x8b\xf6I\x17d\x16\xb3ԇ\xffAcO\x8a\x96\x04ҿ\xbe\xee\x1a\x86\x11\v\xf3\xf8\xf5z\xe98c\xf2<\xcf=^\xa0:B2B\x81\xd3\x1f\xdf(\x0e9\x1d)@\x9c\x9f\xef\x81\x00\x01\x80\x01\x83\x1b\b\x00\b\x9d@\x00@H\x007\xcc\u0095\x98\\0\xa4\xa9L\x0e\rs\xa3$m\xc4\x03\x89\xff\xfbL\x01\\Cj6\xa6\x00n.(RXj\x0f\x80\x85\r\xa9\xd2\xf5[\x00B;\xff\xf7\x8c\x02\x9d\xcb`ڜEb6\x8bE\xa9\xff5Cfsr\xd5\\\xc1\xc0\x1a(l+\xabT\t\x89\x86TcgA\xd6\xce\xff\\5\fnO\x9a\xa3\xd5\xe0S\x1c\xa4r:\x14s\xd5\xeb\rv\"H=\x93?\xdf9\x19;9]\aP+\x8a\xd2b2\x04\xf3\xd5\xee\xa2\xdeh*\x19\r\xa23\x88ʌ\xe4\xa8:\x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x91c\xff\xf92LU\xef\xfbr\xbco\x98\x91\xf0\xbeG\xff\x81\xa4\x00\x04\vYz2P19,\xb5ܧ\xff\xf0\x16\x17\xa7\x17\x90\xca^\x1a\x93?\xfd\x8b\x94`MS\x1dUup\xc5\xee\xf24\xf5z@\x1a\xcc\xda8/\xbf\xbf\xf6\x81\xc7g\xd5\xc1;\xff\xbeZ\x8d \xc1\x14ԋ\x81\xea\xf5\xb8\x9a\f\x15LH\xad\x9e\xafP\x0f\x98\xc4") diff --git a/testdata/fuzz/FuzzDecodeAnnexB/seed-base_ip_slices b/testdata/fuzz/FuzzDecodeAnnexB/seed-base_ip_slices new file mode 100644 index 0000000..1ac4e24 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeAnnexB/seed-base_ip_slices @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x01gB\xc0\n\xdb\v\x13\xa1\x00\x00\x03\x00\x01\x00\x00\x03\x00\x14\x0f\x12&\xe0\x00\x00\x00\x01hʂK \x00\x00\x01\x06\x05\xff\xff7\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=0 ref=2 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 slices=3 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=25 keyint_min=2 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=28 ip_ratio=1.40 aq=0\x00\x80\x00\x00\x01e\x88\x84?\xc4\"+\x06\x04!\xf8\bQ\xb3\x00\x0fZ\x86\xb0k\x80\x13\x13\xc3:\x10JN\x16\x93?\xfc\x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\xe0\xf3\x00U\xc8d8ڟ\x12ɐ9\x8d\xa4;\xb3ƚ\x1bS\t\xb2.1\x91\x13\xe7\x00\x04\x88)sd#O\xd0\xd7;9\xba\x87\xb9!O\xffDq\x15\aj\x10\xeb\xe0\x00\xf1xʌh\xe8?\x91\xff\xe8\x1c@@#/u\r\x91I\xde\xff\x93\x95\xe3|ď\x85\xf6\x7f\xf8\a\xeb\xdb\x1a\x7f\xfc\x99&*\xf7\xfd\x83\xe0\x01K\xc6\xf9\x89\x1f\v\xec\xff\xf5\xc7C\x13\xbf\xc9\xc3\xd5\xef\xa0\xfc͠\xb6\xd9\xfe\xd8\x1b\\>\xcc\xe5c\xd5\xed\xa59@؇\x13\x7f\xa0;Ki~\xaa\xa0\xf5Ζ\x1b\x89\xfd\xf6&B\x02\xea(\x06\xcc\n\\\x8f\x91`2pR\xe0|\xc5s\xa8\x82\xd5\xff\xfc\xc7[\xec\x83ѿ\xfcy\xf3$\xfa燑7\xd7a\x9c\xcbx\xcf\xe1?\xfc\xc2=\x14\xe1\x9b\xd2\xff\xf9\x11W\x89\x83\x91c\xff\xf92LU\xef\xfbr\xbco\x98\x91\xf0\xbeG\xff\x81\xa4\x00\x04\vYz2P19,\xb5ܧ\xff\xf0\x16\x17\xa7\x17\x90\xca^\x1a\x93?\xfd\x8b\x94`MS\x1dUup\xc5\xee\xf24\xf5z@\x1a\xcc\xda8/\xbf\xbf\xf6\x81\xc7g\xd5\xc1;\xff\xbeZ\x8d \xc1\x14ԋ\x81\xea\xf5\xb8\x9a\f") diff --git a/testdata/fuzz/FuzzDecodeAnnexB/seed-high_cqm_custom b/testdata/fuzz/FuzzDecodeAnnexB/seed-high_cqm_custom new file mode 100644 index 0000000..eca3323 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeAnnexB/seed-high_cqm_custom @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x01gd\x00\n\xac\xd3\v\x13\xa1\x00\x00\x03\x00\x01\x00\x00\x03\x00\x14\x0f\x12%8\x00\x00\x00\x01h\xea\xe12\xce\x10F\x10s\xa3\x18\xc8\xe7\x10e\x14\x8c \xe7F1\x91\xce \xc9\x04\f\xe2Lfs\x9d\x98\xc2N\xe1\x00B\x84\x01\f \bK\x00\x00\x01\x06\x05\xff\xffy\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=2 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=2 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=22 ip_ratio=1.40 pb_ratio=1.30 aq=0\x00\x80\x00\x00\x01e\x88\x84\x01\xffv\xbf\x9fk\x97\xd2\xf3q\xf1\xd1S\x8f\xf9\xb2\x8b\x81\x96\xf2l\xf5\xd3\xd2\xcc\xebx*UN\xee\xd2r\x90ZR\xca\x18ŝ\xfe`\x02+geY\xe4\xd7\x00\xc9t\xc0\x196\x1c\xe3\x0e\xd9\xe0\xd1\xff,y9\xed\xea4\xba\x00\x99U\x13T]\x1e\xb5\x03h\x7f\xcaNjD\n\xdebC\x9e\xe4\xcbɋ\x11}\x94\aǥw\x8br\x8bB\xdbl\xc5Y\xa4\xb8\x11\xe7\xb1\xe2\xbd\xea\xa2\xf2\x98.\xf8\x15rh/\xe7<ֆ\xb9B\xad\xb34<\x95\x9c\\\b\xfa\x0fG\xean*\xeb\x00\xbf\x18\xc4\a\x0faM\xf0\xcc\ttÝ\xd5W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\x81͠&\xcah\xe4ɉ\xa4g|\xb7B@\x1e\xb33\xd7t\xe7\x18\xb3-\x98N\x89g\x06\x0e\xaei\x9d\xf0*\xa8\xbb|\x95\x1bUQ\xd5\xe9\xe8\x16\x11/\xfb\xaaWq\x0f\xef") diff --git a/testdata/fuzz/FuzzDecodeAnnexB/seed-high_cqm_custom_cavlc b/testdata/fuzz/FuzzDecodeAnnexB/seed-high_cqm_custom_cavlc new file mode 100644 index 0000000..2611e14 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeAnnexB/seed-high_cqm_custom_cavlc @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x01gd\x00\n\xac\xd3\v\x13\xa1\x00\x00\x03\x00\x01\x00\x00\x03\x00\x14\x0f\x12%8\x00\x00\x00\x01h\xca\xe12\xce\x10F\x10s\xa3\x18\xc8\xe7\x10e\x14\x8c \xe7F1\x91\xce \xc9\x04\f\xe2Lfs\x9d\x98\xc2N\xe1\x00B\x84\x01\f \bK\x00\x00\x01\x06\x05\xff\xffy\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=0 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=2 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=2 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=22 ip_ratio=1.40 pb_ratio=1.30 aq=0\x00\x80\x00\x00\x01e\x88\x84\x01\xfd\x10\x01\x15\x83\x02\x10\xfc\x01\x1ba\x98@\x01\xb5\xa80B\x00\a\x85\xe9\xc5\xe5\x15\x84\xa0z&?\xfc\r\x93/\xcdHl\xce6\xbe\x7f\xf0g\x91<\x19\u0603S\xfa\x02\xfe\xe0\x80\xfd\x90\x91\xf20?sL)\xff\xd8\x1a6\xe9ED\xe0\x8b\x94\x9f\xdfZ\x87\xb0\xa3<\x8fN\xa0z\xbdt_\x1c\x0e\xe74\x10\x89\xea\xf5\x01\xf3\x18͇\x04\xa3\x0f\xef\x94\a\x8eb\xb7\x1c;\xc8\xff|\b\x00\x04\b\x00\x00@\xd8\x00`T \x00\x10\v\x03\xb4\x00\x04\x12\x80\x03v\x1b\x89\x12\xe2\x0f@q\xe4\xa9#\x00<5\xcfFD?\xe1\x00X\x98\x96?\x9c\x00\x95\x02\n\x94\xe0\x8d \x024k\x84\xa5V2_\x05\x15\x00 dg\xd6\x13d\x96`\x00 \f\x02L\x06\x7fs\x80-\xc56\xe2\x11\xa5\b\xa8\b\xda,\x02\u009f\xf3R\f\x8cP\x9aL\xff\xe3\x03\x80#1\x1cA.V\xa8\x03\x13\xc1\x9d\f\x13\x1f\xd0%7.\x0fc\x81\x9c\xf6\x82X=^\x050\xf5\x11d/\x89\r=^\xb0k\x90\xcd0?\x8f\xaf\xf7\xce\x10\xc4K\x12K\x10u\x02\xb8V\x89\xc4+\x87&z\xbd\xb4\x16Y\xb0\x14\x82\xa0\xf0\xad\xff\xce\bga\x12E\xa0\xea\xa0\xd3\x1c\x9f\x06\xd1\xd6\xf3\xe0\xa0\x02\xc8\x10\x00\x10\x02\x88*\f'5\xb0\x87ԕDZ!xT\x90?`\x93\x12\xa4\x8c\t\xd2\xff\xfea\xa8\x1fZ\x80Z\x8a#\xf7\xa6@\x0e\xb1@`\xea\x03\xdc!\xe1=Uǘ\x16IN\x1c\xc1\xb8h\xbdAn\xe9߾нdJ\x82\x9c\xf5U\xbf\xfd\b\xab\x88\xa8\x13e\x8a\xc3\xf9\xa9\r\x99\xc6\xd7\xce\xfe+\x88\x9e\x19ЃS\xf8_\xc9\x7f\xfb\xf3R\x1b3\x8d\xaf\x9d\xfc`w\a\xb1\xc0\xce{A)\x1e\xafl\x89\x17#\x02\xf74\x87?\xfa\xc1\xd3\x10\x8c\x82\x86\xcd\x19\xff}@x\xe4+qü\xaf\xf7˃\xd8\xe0g=\xa0\x94\x0fW\x81\xa9\xeeb\x8c\xf6\x1aA\xea\xf4\x80\x0f1\b\xd8p\xff\xbf\xbf\xf5\xc2\x18\x89r\xcd%\aP`A\x89a\x00\x02\a\x15VK#!\x8d\xa9\x83\f\xcdlF\x1fɀ\v\x94aRTmOD\x98\x95\x05\xae; \xd2_\xfea$\x19\x1c\x83j`U,L\xb1\x0e9\x8a0\x01\xd8c@y\x05Ƥ\xa0{CT\x15\t#V\x1b\x99\x94a\xff\xe8G\x11Pv\x04!\xd7\xc0\x01\xe2xgB\rO\xe1?%\xff\xe8\x1c@\x02\x00\x022\xf3R\x1b3\x8d\xaf\x9d\xfcW+\xc3*0\x94\xdc5\xa3?\xfc\x03\xea\xcf\x04\xc2R[K\xdb\"E\xc8\xc0\xbd\xcd \x87\xff8!\x8b\xceY\xceA\xd5`ӡ\xda\xe0o\x1d_\xef\xae\x0fc\x81\x9c\xf6\x82R=^\xbaN\f\x1d\x8cXW\xcfW\xa4\x00y\x88FÇ\xfd\xfd\xff\xb4\x0e\x14\x8e\x9cP\x8eg\xfb\xe0I\x00\x02\x00\x1c\v\x00\x01\x01\x90\x00\x10\x16\x9d\x94Ƭ\xd3l\xd8ș\x88~a\xf6\x8d!\xaa\xb7`|\x94\x10\xff\xfa\x001\xcc1̚7K|V5\xa8f)\xceZ\"\x1c+\x89Lj\x91\x9e\tTD!x\xb0\xcc˱g\x18\x1c棛!j") diff --git a/testdata/fuzz/FuzzDecodeAnnexB/seed-high_cqm_jvt_4x4 b/testdata/fuzz/FuzzDecodeAnnexB/seed-high_cqm_jvt_4x4 new file mode 100644 index 0000000..22d1610 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeAnnexB/seed-high_cqm_jvt_4x4 @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x01gd\x00\n\xac\xd3\v\x13\xa1\x00\x00\x03\x00\x01\x00\x00\x03\x00\x14\x0f\x12%8\x00\x00\x00\x01h\xea\xec\xb1\x00\xb0\x00\x00\x01\x06\x05\xff\xffy\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=1 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=2 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 pb_ratio=1.30 aq=0\x00\x80\x00\x00\x01e\x88\x84\x01\xff\xadn\xda\xfb\xb4\xf00]\xdc\xd4nL2י\x81\x93\xb1F\xa8\xa6\xe8\x0en\x13\xb2\x8b\xb8\x7f<\xc8\xeb\xc6ˈ\xdf1\xe5h\x11\xb8J\xe09\xdd\xdb\xd5kJ\x8b\x12GNI\xe1\xca\xfc\xea\x85P\xba\x1e\x04LC䬸w)\xaa\xf6\x95e\x16l\xb4\xf5s\xe9x\xa3\xa8\a\xcf }\x94\xa3b\xdb\xfd\xdd_\x16\xf7\xfd\xc6|\xf9\b,\x87+\x91]VW\x18\xa8\x9d~H\xae\x02\x05}\xf9yʭP\x11\x99\xe7\xb7c\xa6V\xdaR]-\x06́\xf09\xcc0\xe6pu\xbb;\x0e\xa3>\xcaq^#\x10\x90\x11\x16\x85\x1aׁ\x05\xbe\x8d-\xf0\x83K\xae<\a\xbf\xc4\xc8Rv\x93\xf2\a\x1fx\xd6D\a4\xa7a0\x0f\x97\xf2\x16pr֪\x86\xad\x16\x89E\xd1\xd5\x06\x99(\x19\"~\xd7\xf0?\xd0\xfb\xe8\xa5\x0f\xbe\x1d\x14z\xbd\xc7?%F\x06\x95\xf8ɘ\xc8\xccRX\x93\xa0bp=-\x80\x90}ڣ\xc0\x11\xa7PV\x04\x95\bh\xd0\xf1@\xd5\xe1\x11(\x1b\r\x88\xc3~\xb7\xe82\x9e\xbeJ\xa8Sa\xbe\x92\xed\xcf\x1bJ'\xa8A\xdf\xdc.\x00|\x1a*0MdD\x9c\xce\xeb0\xf7ytM\xa0F\xdc~\u05cb\x9d\xab\xb3?\t\x03\xc3L$d+\xb9\xa9\x01\xf9\xbb\xfd\x8e\xe4\x13\x10\xf1'\xb9\x1b\xbf\x97\xe0R\xe6\xbaV\t0\x9d@C \xed\xd8m\xc6\xff\xe3\x10=*.h\a\xc7\x1e\xa2\x11\x82cM.aE\xbcb\xae\x86\xfa\x13g&1܄\xb2\xfc\x84\x0e\xff\xab\xfc݄\x90\xee\x922,,gR\xc5\x05\xbf\xbf\x9cε\x1e\x9e\x9aa3\xc5%6\x94<4") diff --git a/testdata/fuzz/FuzzDecodeAnnexB/seed-high_cqm_jvt_cabac b/testdata/fuzz/FuzzDecodeAnnexB/seed-high_cqm_jvt_cabac new file mode 100644 index 0000000..d453156 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeAnnexB/seed-high_cqm_jvt_cabac @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x01gd\x00\n\xac\xd3\v\x13\xa1\x00\x00\x03\x00\x01\x00\x00\x03\x00\x14\x0f\x12%8\x00\x00\x00\x01h\xea\xec\xb3\x00,\x00\x00\x01\x06\x05\xff\xffy\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=1 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=2 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 pb_ratio=1.30 aq=0\x00\x80\x00\x00\x01e\x88\x84\x01\xffѷm}\xdax\x18.\xeej7&\x19k\xcc\xc0\xc9أTSt\a7\t\xd9E\xdc?\x9edu\xe3e\xc4o\x98\xf2\xb4\b\xdc%p\x1c\xee\xed굥E\x89#\xa7$\xf0\xe5~uB\xa8]\x0f\x02&!\xf2V\\;\x94\xd5{J\xb2\x8b6Zz\xb9\xf4\xbcQ\xd4\x03\xe7\x90>\xcaQ\xb1m\xfe\uebcb{\xfe\xe3>|\x84\x16C\x95Ȯ\xab+\x8cTN\xbf$W\x01\x02\xbe\xfc\xbc\xe5V\xa8\b\xcc\xf3۱\xd3+m).\x96\x83f\xc0\xf8\x1c\xe6\x18s8:ݝ\x87Q\x9fe8\xaf\x11\x88H\b\x8bB\x8dk\xc0\x82\xdfF\x96\xf8b2\xeb\x8f\x01\xef\xf12\x14\x9d\xa4\xfc\x81\xc7\xde5\x91\x01\xcd)\xd8L\x03\xe5\xfc\x85\x9c\x1c\xb5\xaa\xa1\xabE\xa2QtuA\xa6J\x06H\x9f\xb5\xfc\x0f\xf4>\xfa)C\xef\x87E\x1e\xafq\xcf\xc9Q\x81\xa5~2f23\x14\x96$\xe8\x18\x9c\x0fK`$\x1fv\xa8\xf0\x04i\xd4\x15\x81%B\x1a4\xf0A\x83\xf1Ig\xc4\xea\x1cd\xba\x844I\xf5\x1d\x9e\xb7)=v+\r\x01\xc2>\xf8\xae\xe6\x9e\xd0T5|>{\xa5\x84]9\xfd\"\xa4\xe8\xb4XsD\xfd\xcaډ0\xe3z\xb6ؙh\r\xd9\x1bO\xc3P\xe2m\\\xd7\xcf̴\xa3\xb6'mMF\x16/\x0fɮc\f\xa6g^\xb5\xa9\xa2;\x1d\x8bWʾ\xc0\x90\t\xc3n\x82\xf4i\xe0m\xf98\xf8\x8aUY\xcan\xf6^X\x19V\x10K\xbc\x8b\xfeE\x85\xc1Z\x97\f\x8e\xe8\xf5u룲\xe5\x1f\xf6\xb7\f\xd0\xd3b\x10\xdb@\x0e,RY\xf5\v\xb0\x14\f\xc2(d\x12\xb9t:R\xaf*\xc0sjE@D\xf8\x87\xde:\xb3-y\x1b;\xe5\x16s\xb3\xed+\xbf\x8d\xaf\xaeA\xe5\xa6\x18\xb8M\\⭶\n\xde\n\xabU*!\x8d\xa5!d\xba\xdd\xec4\x02\x9aV\xc5\xf7\xd2`f\x81\xe8:\xe4~") diff --git a/testdata/fuzz/FuzzDecodeAnnexB/seed-high_cqm_jvt_cavlc b/testdata/fuzz/FuzzDecodeAnnexB/seed-high_cqm_jvt_cavlc new file mode 100644 index 0000000..bec34bc --- /dev/null +++ b/testdata/fuzz/FuzzDecodeAnnexB/seed-high_cqm_jvt_cavlc @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x01gd\x00\n\xac\xd3\v\x13\xa1\x00\x00\x03\x00\x01\x00\x00\x03\x00\x14\x0f\x12%8\x00\x00\x00\x01h\xca\xec\xb3\x00,\x00\x00\x01\x06\x05\xff\xffy\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=0 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=1 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=2 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 pb_ratio=1.30 aq=0\x00\x80\x00\x00\x01e\x88\x84\x01\xf8c\x00\a\x80@\x00\xc6c\n\x06\x1d:i\xf0\x04H@\x00@t\x04)\x827j-\x00#%\xa0\x04\xc0\x01k\xccy\t\n\x80+_\xfe\x1d\x00\b\xc8\xe8\x00Fu\xd4d\x8cT\xaa\x05S\xff۔\xcd\x10\xa3\xa0\x0e\xd7\xff\x87@\x04į\x182\x18P\xaa\xaf\x0e\x80\t\x80x\xc6F\xb0\xc0̿|\x94т!\xc5\v\xaa\xf4\xaf\x186!\xc0%W\xa4\x1c\x88\x94\x18\x1d\xb7\xef\x92\fdk\x18\x11W\xef\x81\x00\x00\x81\xd0\x00\b2\x00\x00\x80P\x11\b\x00\x04\x06\xc0\x1c\xb0\x00\x10\x98\x00'ؐ\x82\xe0C\u05cb\xa1\x03\xc3\\\xef\x83\xf2\a+\x7f\xfe\x8e\x16\x84%\\#H\x00\xeb\xc5\vb\x15\x1e\x00\x10\r*u\xbdx\x10\x82?\xffx\xe2\xb3\x0eȍ(EDF\xdbE\xa9\xf8\x05,\x89\x8a\x96\xf5@\xc1\xc0BF`\xe0\xea\xd5\x03\x16f\x88Q\xd0\x1d\xe0G\x7f\xa9t`\x98\xa7\x00\xa0\x8d^\x06\xbd\x91\x84\xec(\r=^\xb3\xe8\x95\x00\xd4\n\x9f\xef\x9d\"\xec㞃\xa8\x1b\xdeH&` \xf3\xd5\xedJ\xea\f\x86\x81\xe8\x04'i\xa18\x9e\x83\xaa\x8dF\\\x04\xa0Fy\xf0P\x00\x10\x02\xc6\b\x00\f\x00\xa1G\xc6V\xc85Pz/\x1e\f\xa6\x16\xbc\xfaBԿ\xfe\xe5\xf0\x7f\x83\x90\xdf\xfe\xe0\x90\xca\b:[\x00\x87\x13)\x06\xc1Jb\x87\x030\xa7\xe3\xb7\x1b\xf7\xd8_%\x18\x9d5\xfd\xf4\"\xb1\x15\x02fR\xeb\x03\xf7-&*\xfdp'\xffvS8\x85\x1d\x00\xab\x03?\xfd\xff-&*\xf7\xaa\x06\x0e\x97F\t\x8ap\n3W\xb1S\xa4<\x87\x18\xeb\xfe\xb3ҕ`\x1c\x00\x01\x00_\xfd\xea\xc74\xed\x80\x12P\x00\x10\r\xfe\xfa\x97F\t\x8ap\n\x11\xab\xc0\xefd\xc4S\x0e#W\xa4\x1c\x88\x940*\xdf\xdf\xfa\xe8D\xa4p\xa2\x90u\x06\x00@1\xec \x00.\x01ê\xba\x18ƹ\x98\xfa j\a0[\x10\x98ѵ>\xc9hs6\x90u\xb3\xcd1\r\xa9\x86\xb5\xc6\x18N\a\xa0\x05\x18\xa1\xe7\xc4@\xb9q\xf1\xa3\x05T]\x9d\x14\x84#\x88\xa8;P\x87_\x00\f)\x9a!G@*\xc0\xef\xffA\xa0\x00X\x00\x04\b\x19\x7f-&*\xf7\xba\x06܉\xa4P\xf0t\x81\x1d\xfe\trB\x8e|rة\xd2\x1eC\x8cu\xff;\x11\xc38\x83\x10uQ\xdc4\xa3x\xc9\xffuK\xa3\x04\xc58\x05\x19\xab՛\r\x98\xa0b\xf5zAȉC\x02\xad\xfd\xff\xb4sMc\x04C\x7f\xbe\x04\x80\x80\x18\x03BC\x00\x01\x010\x00\x10\x04\x8ev\xd1\x01\xd5\xcd\xe88@\xee\ve\xa1\xea\xd0\xce\x16$1&F\x94\xe4x\x90\xdc\x1e\xceY\xb2@a(i\xf6\x97\x92 ≱\xa4\xbf\xfep\x1a\x82\xa5\xe9J\x1dJ\x11Q\x11\xe1\xd8\xd3\xf0*\nL\xb1\xf7\xc0\xdb\xfd\xfc\x00A\x13H\xa1\xe0\xe9\aw\xfa\xb5a3\x94\x0ef\xaf|\x8e\x92P\xc1R\xfe\xff\xd0\xc3lLQN\xd5\xe89\\\x1b\x10-\x03\xb7\xce\x06.\xe4\xfc\x95Q\xdcj\x04\xa0\xdb\xfd\xb0\x80\x012\x10\x00\t\x81T l\xb8\x14|\xc0\xe8`\xc9x(\xf9\x01۟R%\xc0\xdf\xfe\xde?h\xd5\x02\x7f\xf9\xbbdR\xba\x1d\x11\xca\xed}\xaf\xcck(\xcf\xffj\xf9\\b") diff --git a/testdata/fuzz/FuzzDecodeAnnexB/seed-high_intra_8x8_cabac b/testdata/fuzz/FuzzDecodeAnnexB/seed-high_intra_8x8_cabac new file mode 100644 index 0000000..28bddb0 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeAnnexB/seed-high_intra_8x8_cabac @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x01gd\x10\n\xac\xb8X\x9d\b\x00\x00\x03\x00\b\x00\x00\x03\x00\xa0 \x00\x00\x00\x01h\xee2Ȱ\x00\x00\x01\x06\x05\xff\xff-\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=1 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40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0\xc2\xc23\n4?b\xf5\xa4\x94\xcbR\x80*Y\xf4Y]\xde\xfa\x8d\x01\xac\xf76\xdf>\x8a\v\a\\\xabG\xec1\x1d\xe6x\xb8\xf9\x98\\\xef8b\xafF\xb4H\x8b\xd6\x05\xbb\xd2_\xd1\xf5|\xb8g\x95W\x9e\x9f\xde{\xdd\x14.ŧ!\xce^\xdf\xf3J\x15\xfe\x96\xe5\xe2qjXu/S\xc4K\xbe\x92\x97f\xe0\x1cj\r\xc2b;ko\x8a:P\x9b\xb6}茲-\x1c\x02X>\xfc\xa3:\xd8Ҝ\xea!\xab\xed\xe8q\xe44:\xd0 \xbf\x81\x875\xe7\xf7l\x85\x8b\x9f\x12\xa52\x97\v\xa3>\xceSE\xd7\xf8I\x95\xe6\xb0\x0e\x86$\xd0\xcdB\x1aDm1\xb1\xb3\xa3\xad\x18R\xaf\x83\xd7Xr\xa7\xb8\x1e\x93\xef\xf0\xdcA\x9c\xd3֡\xa7\xad0\x92B\x8aվ\x85/\xde\xf5[") diff --git a/testdata/fuzz/FuzzDecodeAnnexB/seed-high_intra_8x8_cavlc b/testdata/fuzz/FuzzDecodeAnnexB/seed-high_intra_8x8_cavlc new file mode 100644 index 0000000..2764db1 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeAnnexB/seed-high_intra_8x8_cavlc @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x01gd\x10\n\xac\xb8X\x9d\b\x00\x00\x03\x00\b\x00\x00\x03\x00\xa0 \x00\x00\x00\x01h\xce2Ȱ\x00\x00\x01\x06\x05\xff\xff-\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=1 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 aq=0\x00\x80\x00\x00\x01e\x88\x84?\xa2\x11\x15p`B\xfc\x04(\xc8@\x00-j\x05\x1aP\x00J\x17\xa7\x1f\x94\xea_\x1e\xb1_\xfe\vY~jCfq-s\xb7Dq\x13\xc1\x8b\xc8e/\x04\xe5/\xff\x17\xf3\xb0\x91\xf20\xf9\x89r\xbf\xfd\xc06\xe9E\xe9\xa34\xe9\xfb\xebQ\xa4\x18\"\x9a\x91\xba=^\xb7\x13A\x87C\x12+'\xab\xd4\x03\xe61\x1b\x1c\x02\xae?\xbeP\x0f\x14\xc5Np\b\x84\xff|\b\x00\x04\x00\x00\x03\x00@\x00\b&\x10\x00\x15\x17\xc0\x03\x00\x03v7\x12%\n'\x850\x95$\xc0<5\xcf\x06Hۈ\x01\xc9[\xfb\x98\x00.\x82:\xa4mL\x00\x8d6\x85\t3\x1d\xf0_\x01\x84#\xf4\xec\x9bR\xd8\x00\x82I\x9f\xff\xb4\xe0\nr\x9fȍ(EDF\xdb\x00\xb0\xa7\xfc\xcaA\x90\x85\x1a\xd7;\xb4\x80\xe0\b\xa6A\x90r+T\x05\x85\xce.!\x94\x9e\x82\xdaGZ\x8d \xc3!i\x13\xe3\xd5\xe0S\x0fS\x14\xc5C\x82\x9e\xafX5\xc8f\x90>\x9b\x7f\xdf8C3\x90\xa7\"\x0e\xa0W\v\xd3!\x88\x80\x8b=^\xe7\x05\x96h\x15\x8e\x87\xd1\x19\xc1\f\xe8B\x9b\xa0\xea\xa0\xd3\x1d\xae\x1aʯ>\x03\x00f\b\t\xc4$%\xb3\xb2\a\xd5>\x94\xb2G\x81\xb99\xb0I\x91\x95\x10\x16\xaf\xff\xc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J\xa6\x80\x1f.\x03\x89\x98=6\x00\xe9x\x1cL\x81\xec\"Ӕ#j_\xff0\xcaoX\x8f\xa1?\xfc\x8e\x9e1b\xfa\xe8\xe0\xf1\v\x97\xd7i\x8ft\xbf\x94}\x89S\xff\xdaC\xf9'\xc5\x1bfV\xff\xf61\xf0\x18@f@\xf3\xe1|3c\x82\xcf/\xfflĠ\xc9\x00\xbc\xe8,3\x92") diff --git a/testdata/fuzz/FuzzDecodeAnnexB/seed-high_ip_8x8_cabac b/testdata/fuzz/FuzzDecodeAnnexB/seed-high_ip_8x8_cabac new file mode 100644 index 0000000..42ae50d --- /dev/null +++ b/testdata/fuzz/FuzzDecodeAnnexB/seed-high_ip_8x8_cabac @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x01gd\x00\n\xac\xb6\x16'B\x00\x00\x03\x00\x02\x00\x00\x03\x00(\x1e$M\xc0\x00\x00\x00\x01hꌲ,\x00\x00\x01\x06\x05\xff\xff.\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 aq=0\x00\x80\x00\x00\x01e\x88\x84?ѷmbx\xad@\x17wT\xae\x10OS\xc8?\t\xff\x8c\xcd6\xdaK\f0\xf0\xe4)oD\"\x1c\v9s\x95\x94\xf7\x17\xf6\xee\x15V\x96\n\xe6\xeey\x04f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xd2_\xd1\xf5|\xb8g\x95W\x9e\x9f\xde{\xdd\x14.ŧ!\xce^\xdf\xf3J\x15\xfe\x96\xe5\xe2qjXu/S\xc4K\xbe\x92\x97f\xe0\x1cj\r\xc2b;ko\x8a:P\x9b\xb6}茲-\x1c\x02X>\xfc\xa3:\xd8Ҝ\xea!\xab\xed\xe8q\xe44:\xd0 \xbf\x81\x875\xe7\xf7l\x85\x8b\x9f\x12\xa52\x97\v\xa3>\xceSE\xd7\xf8I\x95\xe6\xb0\x0e\x86$\xd0\xcdB\x1aDm1\xb1\xb3\xa3\xad\x18R\xaf\x83\xd7Xr\xa7\xb8\x1e\x93\xef\xf0\xdcA\x9c\xd3֡\xa7\xad0\x92B\x8aվ\x85") diff --git a/testdata/fuzz/FuzzDecodeAnnexB/seed-high_ip_8x8_cavlc b/testdata/fuzz/FuzzDecodeAnnexB/seed-high_ip_8x8_cavlc new file mode 100644 index 0000000..2f20dbd --- /dev/null +++ b/testdata/fuzz/FuzzDecodeAnnexB/seed-high_ip_8x8_cavlc @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x01gd\x00\n\xac\xb6\x16'B\x00\x00\x03\x00\x02\x00\x00\x03\x00(\x1e$M\xc0\x00\x00\x00\x01hʌ\xb2,\x00\x00\x01\x06\x05\xff\xff.\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=0 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 aq=0\x00\x80\x00\x00\x01e\x88\x84?\xa2\x11\x15p`B\xfc\x04(\xc8@\x00-j\x05\x1aP\x00J\x17\xa7\x1f\x94\xea_\x1e\xb1_\xfe\vY~jCfq-s\xb7Dq\x13\xc1\x8b\xc8e/\x04\xe5/\xff\x17\xf3\xb0\x91\xf20\xf9\x89r\xbf\xfd\xc06\xe9E\xe9\xa34\xe9\xfb\xebQ\xa4\x18\"\x9a\x91\xba=^\xb7\x13A\x87C\x12+'\xab\xd4\x03\xe61\x1b\x1c\x02\xae?\xbeP\x0f\x14\xc5Np\b\x84\xff|\b\x00\x04\x00\x00\x03\x00@\x00\b&\x10\x00\x15\x17\xc0\x03\x00\x03v7\x12%\n'\x850\x95$\xc0<5\xcf\x06Hۈ\x01\xc9[\xfb\x98\x00.\x82:\xa4mL\x00\x8d6\x85\t3\x1d\xf0_\x01\x84#\xf4\xec\x9bR\xd8\x00\x82I\x9f\xff\xb4\xe0\nr\x9fȍ(EDF\xdb\x00\xb0\xa7\xfc\xcaA\x90\x85\x1a\xd7;\xb4\x80\xe0\b\xa6A\x90r+T\x05\x85\xce.!\x94\x9e\x82\xdaGZ\x8d \xc3!i\x13\xe3\xd5\xe0S\x0fS\x14\xc5C\x82\x9e\xafX5\xc8f\x90>\x9b\x7f\xdf8C3\x90\xa7\"\x0e\xa0W\v\xd3!\x88\x80\x8b=^\xe7\x05\x96h\x15\x8e\x87\xd1\x19\xc1\f\xe8B\x9b\xa0\xea\xa0\xd3\x1d\xae\x1aʯ>\x03\x00f\b\t\xc4$%\xb3\xb2\a\xd5>\x94\xb2G\x81\xb99\xb0I\x91\x95\x10\x16\xaf\xff\xcb5\x0f\xad\xc3\xc4#\xffܙ\x002\xce\x04\x11\x00{\x84\x1e2\x9b0V\x1a!\f1\x83q\x91\xb6\al'\xef\xb4/Q\x12\xa1\xc6OD\xbf\xfd\b\xacED\x9b \xd6\b\x1f\xcdHl\xcenZ\xab\x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c5\x1bfV\xff\xf61\xf0\x18@f@\xf3\xe1|3c\x82\xcf/\xfflĠ\xc9\x00\xbc") diff --git a/testdata/fuzz/FuzzDecodeAnnexB/seed-high_ipb_8x8_cabac b/testdata/fuzz/FuzzDecodeAnnexB/seed-high_ipb_8x8_cabac new file mode 100644 index 0000000..49a46fd --- /dev/null +++ b/testdata/fuzz/FuzzDecodeAnnexB/seed-high_ipb_8x8_cabac @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x01gd\x00\n\xac\xd3\v\x13\xa1\x00\x00\x03\x00\x01\x00\x00\x03\x00\x14\x0f\x12%8\x00\x00\x00\x01h\xea\xec\xb2,\x00\x00\x01\x06\x05\xff\xffy\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=2 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 pb_ratio=1.30 aq=0\x00\x80\x00\x00\x01e\x88\x84\x01\xffѷmbx\xad@\x17wT\xae\x10OS\xc8?\t\xff\x8c\xcd6\xdaK\f0\xf0\xe4)oD\"\x1c\v9s\x95\x94\xf7\x17\xf6\xee\x15V\x96\n\xe6\xeey\x04fE\xad9\xe9۬\xf6IF\xd7xZE\xb6R\n\xbd\x9d\xebM\x04X\xa9_o}\x1e\xa9Z\xe1\v2\xe2\xdaԒ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/S\xc4K\xbe\x92\x97f\xe0\x1cj\r\xc2b;ko\x8a:P\x9b\xb6}茲-\x1c\x02X>\xfc\xa3:\xd8Ҝ\xea!\xab") diff --git a/testdata/fuzz/FuzzDecodeAnnexB/seed-high_ipb_8x8_cavlc b/testdata/fuzz/FuzzDecodeAnnexB/seed-high_ipb_8x8_cavlc new file mode 100644 index 0000000..5def81c --- /dev/null +++ b/testdata/fuzz/FuzzDecodeAnnexB/seed-high_ipb_8x8_cavlc @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x01gd\x00\n\xac\xd3\v\x13\xa1\x00\x00\x03\x00\x01\x00\x00\x03\x00\x14\x0f\x12%8\x00\x00\x00\x01h\xca\xec\xb2,\x00\x00\x01\x06\x05\xff\xffy\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=0 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=2 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 pb_ratio=1.30 aq=0\x00\x80\x00\x00\x01e\x88\x84\x01\xfd\x10\x88\xab\x83\x02\x17\xe0!FB\x00\x01kP(Ҁ\x02P\xbd8\xfc\xa7R\xf8\xf5\x8a\xff\xf0Z\xcb\xf3R\x1b3\x89k\x9d\xba#\x88\x9e\f^C)x')\x7f\xf8\xbf\x9d\x84\x8f\x91\x87\xccK\x95\xff\xee\x01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%jA\xd4\x19\b\xac Ed\xaaI\xcck\x98b\x17d\"\xf4\xf9\x80\v\xb9\x86ƍ\xa9\xf0\x93# <\x83TCR\xc2Hh\xac6\xa6\x13bO\x9c\xe3b}`\x0e\x18\x90,\x89\x8c\u0602\xda\rqHP\x97\xe7\xec\x88\xe3\xffЎ\"\xa0\xedB\x1d|\x00\x1e'\x86t \x94\x9c-&\x7f\xfa\a\x10\x04\x01\x99y\xaa\x1b3\x9b\x96\xf5\xcd\xc4^\x19Q\x8d\n\x81|\xaf\xff\x00\xfa\xb3\xc2Bb\xbe]\xceď\xb2\x0f\x98\x95#\xff\xce\bb\xe2\x12\xe5 \xea\xc0iҝ\xac\r\xa6O\xdfZ\x8d \xc3!i\x17\x83\xd5\xeb\xa4\xe1\x85B<Ğ\xafH\x00<\x84\"b\x80\xe9\x7f\x7f\xed\x01\xc7#\xa5(\x1b\xb7\xfb\xe0\x1c\x81\x03\x81\xd0\x000\x02N͛%6\xb9\xe96@ћp\xd231t\x1e\xa5\x10\x86\x00.c\b\xc8\x1bR\xbe\x1c\xda\x12*\xafܴ\x88p\xaa\xc89\x90~\x82^B\x10Z\xf3\xb6\x16\xd7\xff\xd6\xc0\xe5%\x0e\xf94\x9f\xff\xfd\xa8EDG\x87cO\xfc\xd5\x18\x91I\xcb\x7f\xcc\x1f\x00\a\x8b\xc3*1\xa1P/\x95\xff놡\x84B|\xde=^\xf9\x00\x1a\xc4d\x85\x03\xfb\xfb\xffA\xb2pԄs\x90\xf5{h\xb7\x9a\x0e\x86=\x9b\xfd\x01f\x96h\x9bժ\x06\x9f\x15,\x1a\xc8\xfe\xfb\x10\xa4 \x02U4\x00\xf9p\x1cL") diff --git a/testdata/fuzz/FuzzDecodeAnnexB/seed-main_cif_pyramid b/testdata/fuzz/FuzzDecodeAnnexB/seed-main_cif_pyramid new file mode 100644 index 0000000..ca5549f --- /dev/null +++ b/testdata/fuzz/FuzzDecodeAnnexB/seed-main_cif_pyramid @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x01gM@\r젰KB\x00\x00\x03\x00\x02\x00\x00\x03\x00d\x1e(S,\x00\x00\x00\x01h\xea\xec\xb2\x00\x00\x01\x06\x05\xff\xffy\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=2 b_pyramid=2 b_adapt=1 b_bias=0 direct=2 weightb=1 open_gop=0 weightp=2 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 pb_ratio=1.30 aq=0\x00\x80\x00\x00\x01e\x88\x84\x00\xff\xadn\xda\xc4\xf1Z\x80.\xee\xa9\\ \x9e\xa7\x90~\x13\xff\x19\x9am\xb4\x96\x18a\xe1\xc8R\x83\x90\x88c\xd4Z\xf54\xdeT\r\x8b\x02u\xf5\xad \xaa]\x83R\xccʍLJ-b\xf2+\xda`\x05\xbbU\t\x94\xbe\xf0\xa8\xeb\xf9E\xa6w\x96\xfc8]s\xca4\xbb\x00\x1fV\xe6A\xff\x7f\xf2\x00\x8b\xa49lܘ\xde\x17\xa6\x9d\xf0\xf5\xf5\x16\vb\xb2\x8a\xebDf\xe1Dd8[\x9c\xdb\xd1W\x1a\xa0\x98q:Ți\xa3\xbdK\xe7\x19\x86\xa0p\xaf\x8e\x9bO\xdeh\xa1\xe5\xf8\\\x93\x8c\xa1>\xf1\xa7\xb8\xe5\xc90\xb2\xe9O\xc0\f\xecuR\xa7\xa1\xcd\xf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xb8\x11\x90\x83\x13\xae\x01hs\"\x19NV\x0eT$5\x04:\x06Q\x82\x1c\x04N\xec\xec\x831Q\x06\rH\xa9\x9d\xd9\x192\xe1.\x8e\x86\xb6\xc5x\xce\xec\x8e\xddSve\xab\x89\xcd\" C\n\x927\xa3sTČ\xf0\xf7ń\xa0j\x85\xb6?˪\xfd\xd4\xcb-j\xee\xa9SM+\x83\tU0/YB\xa3\xc9 \xbb\xea\x16\xa5\xfdHuua\b\xb7\x81\x1a\\\xbc\xaa\xf2\x9e\xc8\xf0\xeb\xd6\xfd\xbc\xe82\xab9Or\x02\xc0V9\x85") diff --git a/testdata/fuzz/FuzzDecodeAnnexB/seed-main_intra_cabac b/testdata/fuzz/FuzzDecodeAnnexB/seed-main_intra_cabac new file mode 100644 index 0000000..85a0e58 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeAnnexB/seed-main_intra_cabac @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x01gM@\n\xdc,N\x84\x00\x00\x03\x00\x04\x00\x00\x03\x00P\x01\x99|\xc20\xba\xfeh,\xb6\xf1e )\xbeN\xac\xe5\xc0\x97\a\x9b\x18Q\xc35B&ܢ\xe0ҹ\xb6ϵ\x0fn\xcexd\xc2f\xa4ؔ\x91\x1b\xf4\xcd\x16,\xa8m8\x9e\xfb\xb0\xb9a q9`UwM\xa1\x1fңkeV\xbbIO\xe2LA\xb9\xfb\xfc<\xb2\x1b\xc1h\xb7\xb92\xc0\"t\xc1\x19f\x99۵\xf4I\xb4\xdc\xf7\x9b3\xf9\xe7@o\xbd\xd7\xf7 ^5\xd3(\x1b\x80!\xa1~5\xf2ƒO+\x8e\xa8u8\x1f\x9fq\xd0\xeb>T\x91\xcf}m@Z\x82|g\xe1a\x80\x81\x8c\xaad\u05cb\x1b<\x98:b~{\x8e\xe2\xf3\x17\x94v\x85*#\xa3k\xe5\x8a\x1d\xcd\xdcb\x94\r\x03\xe0\f(\x94Ū\xab*,\uee77\n\xa3)݀v\a\x98H\xf4\x98^Ƹq}\x1b\x8b\xff\xc2\xf9)\x06\x8d\xa2\xb9\xea\xbc\xeb@aV\xdb\xcb\xc1\xd0`\xab\xbe\x8c\"\x9c:\x83.\xc4\xc0\xa7\xe6]\xaa\xcb\xf00\xee\x8c\xd1\xd8\xc5-P\x83\x93\x04\xf2\xb5ۤqCC,\xe6\xb8L\xe5\u009c\x85\x00\xa7\xf8a\x922\x06\xbb\xa5\xee\x8e\xf8j\xfa\xc9)\x85\x90\x94\xc5\b\x9a\x98\x83]fGMHI.\x00\x16l\xb1\xce\xd97v/\xfc\xc3\xc1&sgPx\xad\xcd\xf3j&\x18XFaF\x87\xec^\xb4\x92\x99jP\x05K>\x8b+\xbb\xdfQ\xa05\x9e\xe6\xdb\xe7\xd1A`\xeb\x95h\xfd\x86#\xbc\xcf\x17\x1f3\v\x9d\xe7\fU\xe8։\x11z\xc0\xb7zK\xfa>\xaf\x97\f\xf2\xaa\xf3\xd3\xfb\xcf{\xa2\x85ش\xe49\xcb\xdb\xfeiB\xbf\xd2ܼN-K\x0e\xa5\xeax\x89w\xd2R\xec\xdc\x03\x8dA\xb8LGmm\xf1GJ\x13vϽ\x11\x96E\x9d\xb5.\xe0Vˇ#\"\x8f..њ\xe3\xa6\x0e4\x84\x19ErtGw\xff\xdf\xd82J/\x04cP\xdfe\xac\xc2\xf2\xe0Zؒ\xdadI_\x9a\xab\xca\x13\x99Ҋ\xfc\xc1{}?\x06;B\xe5\x86,\xdd\x1fm\x84R\x8f\x00\x94\xacl^\xc1\x89@~\xb1\xf3\xa18˹e\xac\xdf\xca\xfaM9\xbd") diff --git a/testdata/fuzz/FuzzDecodeAnnexB/seed-main_intra_cabac_nodb b/testdata/fuzz/FuzzDecodeAnnexB/seed-main_intra_cabac_nodb new file mode 100644 index 0000000..1c3dc73 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeAnnexB/seed-main_intra_cabac_nodb @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\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a\xf3\xd3\xfb\xcf{\xa2\x85ش\xe49\xcb\xdb\xfeiB\xbf\xd2ܼN-K\x0e\xa5\xeax\x89w\xd2R\xec\xdc\x03\x8dA\xb8LGmm\xf1GJ\x13vϽ\x11\x96E\x9d\xb5.\xe0Vˇ#\"\x8f..њ\xe3\xa6\x0e4\x84\x19ErtGw\xff\xdf\xd82J/\x04cP\xdfe\xac\xc2\xf2\xe0Zؒ\xdadI_\x9a\xab\xca\x13\x99Ҋ\xfc\xc1{}?\x06;B\xe5\x86,\xdd\x1fm\x84R\x8f\x00\x94\xacl^\xc1\x89@~\xb1\xf3\xa18˹e\xac\xdf\xca\xfaM9\xbd") diff --git a/testdata/fuzz/FuzzDecodeAnnexB/seed-main_ip_cabac b/testdata/fuzz/FuzzDecodeAnnexB/seed-main_ip_cabac new file mode 100644 index 0000000..372e319 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeAnnexB/seed-main_ip_cabac @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x01gM@\n\xda\v\x13\xa1\x00\x00\x03\x00\x01\x00\x00\x03\x00\x14\x0f\x12&\xa0\x00\x00\x00\x01h\xee2\xc8\x00\x00\x01\x06\x05\xff\xff.\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 aq=0\x00\x80\x00\x00\x01e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2\xf2\xe0Zؒ\xdadI_\x9a\xab\xca\x13\x99Ҋ\xfc\xc1{}?\x06;B\xe5\x86,\xdd\x1fm\x84R\x8f\x00\x94\xacl^\xc1\x89@~\xb1\xf3\xa18˹e\xac\xdf\xca\xfaM") diff --git a/testdata/fuzz/FuzzDecodeAnnexB/seed-main_ip_fade b/testdata/fuzz/FuzzDecodeAnnexB/seed-main_ip_fade new file mode 100644 index 0000000..7b95445 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeAnnexB/seed-main_ip_fade @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x01gM@\n\xdb\v\x13\xa1\x00\x00\x03\x00\x01\x00\x00\x03\x00\x14\x0f\x12&\xe0\x00\x00\x00\x01h\xea̲\x00\x00\x01\x06\x05\xff\xff.\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=2 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 aq=0\x00\x80\x00\x00\x01e\x88\x84?\xadn\xda\xc4\xf1Z\x80.\xee\xa9\\ \x9e\xa7\x90~\x13\xff\x19\x9am\xb4\x96\x18a\xe1\xc8RވD8\x16r\xe7+)\xee/\xed\xdc*\xad,\x15\xcd\xdc\xf2\b̋ZsӷY쒍\xae\xf0\xb4\x8bl\xa4\x15{;֚\b\xb1R\xbe\xde\xfa=R\xb5\xc2\x16eŵ\xa9$^\xf2U\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x81\x8c\xaad\u05cb\x1b<\x98:b~{\x8e\xe2\xf3\x17\x94v\x85*#\xa3k\xe5\x8a\x1d\xcd\xdcb\x94\r\x03\xe0\f(\x94Ū\xab*,\uee77\n\xa3)݀v\a\x98H\xf4\x98^Ƹq}\x1b\x8b\xff\xc2\xf9)\x06\x8d\xa2\xb9\xea\xbc\xeb@aV\xdb\xcb\xc1\xd0`\xab\xbe\x8c\"\x9c:\x83.\xc4\xc0\xa7\xe6]\xaa\xcb\xf00\xee\x8c\xd1\xd8\xc5-P\x83\x93\x04\xf2\xb5ۤqCC,\xe6\xb8L\xe5\u009c\x85\x00\xa7\xf8a\x922\x06\xbb\xa5\xee\x8e\xf8j\xfa\xc9)\x85\x90\x94\xc5\b\x9a\x98\x83]fGMHI.\x00\x16l\xb1\xce\xd97v/\xfc\xc3\xc1&sgPx\xad\xcd\xf3j&\x18XFaF\x87\xec^\xb4\x92\x99jP\x05K>\x8b+\xbb\xdfQ\xa05\x9e\xe6\xdb\xe7\xd1A`\xeb\x95h\xfd\x86#\xbc\xcf\x17\x1f3\v\x9d\xe7\fU\xe8։\x11z\xc0\xb7zK\xfa>\xaf\x97\f\xf2\xaa\xf3\xd3\xfb\xcf{\xa2\x85ش\xe49\xcb\xdb\xfeiB\xbf\xd2ܼN-K\x0e\xa5\xeax\x89w\xd2R\xec\xdc\x03\x8dA\xb8LGmm\xf1GJ\x13vϽ\x11\x96E\x9d\xb5.\xe0Vˇ#\"\x8f..њ\xe3\xa6\x0e4\x84\x19ErtGw\xff\xdf\xd82J/\x04cP\xdfe\xac\xc2\xf2\xe0Zؒ\xdadI_\x9a\xab\xca\x13\x99Ҋ\xfc\xc1{}?\x06;B\xe5\x86,\xdd\x1fm\x84R\x8f\x00\x94\xacl^\xc1\x89@~\xb1\xf3\xa18˹e\xac\xdf\xca\xfaM") diff --git a/testdata/fuzz/FuzzDecodeAnnexB/seed-main_ip_weightp b/testdata/fuzz/FuzzDecodeAnnexB/seed-main_ip_weightp new file mode 100644 index 0000000..7b95445 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeAnnexB/seed-main_ip_weightp @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x01gM@\n\xdb\v\x13\xa1\x00\x00\x03\x00\x01\x00\x00\x03\x00\x14\x0f\x12&\xe0\x00\x00\x00\x01h\xea̲\x00\x00\x01\x06\x05\xff\xff.\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=2 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 aq=0\x00\x80\x00\x00\x01e\x88\x84?\xadn\xda\xc4\xf1Z\x80.\xee\xa9\\ \x9e\xa7\x90~\x13\xff\x19\x9am\xb4\x96\x18a\xe1\xc8RވD8\x16r\xe7+)\xee/\xed\xdc*\xad,\x15\xcd\xdc\xf2\b̋ZsӷY쒍\xae\xf0\xb4\x8bl\xa4\x15{;֚\b\xb1R\xbe\xde\xfa=R\xb5\xc2\x16eŵ\xa9$^\xf2U\xef=\xfcP\xac\x86\xb8\xac.\x7f9l\x12\xc5\x19\xc9`@\xbc\xd0M)\xa8\xd5\x1e\xd8^\x12u\xe5\x04É\xd6D\xd3M\x1d\xeaX\xeaaZ\x81\xc7\x17\x0e\xe4f\x88\n\x1e_\x84\xe1\rq\x15\x8e4\xf7\x1c\xb4\xa4\x99?\n\xb4\xfe\t\x1d\xdbr\x80c\xa4\x85\xb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x8c\"\x9c:\x83.\xc4\xc0\xa7\xe6]\xaa\xcb\xf00\xee\x8c\xd1\xd8\xc5-P\x83\x93\x04\xf2\xb5ۤqCC,\xe6\xb8L\xe5\u009c\x85\x00\xa7\xf8a\x922\x06\xbb\xa5\xee\x8e\xf8j\xfa\xc9)\x85\x90\x94\xc5\b\x9a\x98\x83]fGMHI.\x00\x16l\xb1\xce\xd97v/\xfc\xc3\xc1&sgPx\xad\xcd\xf3j&\x18XFaF\x87\xec^\xb4\x92\x99jP\x05K>\x8b+\xbb\xdfQ\xa05\x9e\xe6\xdb\xe7\xd1A`\xeb\x95h\xfd\x86#\xbc\xcf\x17\x1f3\v\x9d\xe7\fU\xe8։\x11z\xc0\xb7zK\xfa>\xaf\x97\f\xf2\xaa\xf3\xd3\xfb\xcf{\xa2\x85ش\xe49\xcb\xdb\xfeiB\xbf\xd2ܼN-K\x0e\xa5\xeax\x89w\xd2R\xec\xdc\x03\x8dA\xb8LGmm\xf1GJ\x13vϽ\x11\x96E\x9d\xb5.\xe0Vˇ#\"\x8f..њ\xe3\xa6\x0e4\x84\x19ErtGw\xff\xdf\xd82J/\x04cP\xdfe\xac\xc2\xf2\xe0Zؒ\xdadI_\x9a\xab\xca\x13\x99Ҋ\xfc\xc1{}?\x06;B\xe5\x86,\xdd\x1fm\x84R\x8f\x00\x94\xacl^\xc1\x89@~\xb1\xf3\xa18˹e\xac\xdf\xca\xfaM") diff --git a/testdata/fuzz/FuzzDecodeAnnexB/seed-main_ipb_cabac b/testdata/fuzz/FuzzDecodeAnnexB/seed-main_ipb_cabac new file mode 100644 index 0000000..4f07b5b --- /dev/null +++ b/testdata/fuzz/FuzzDecodeAnnexB/seed-main_ipb_cabac @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x01gM@\n酉Ѐ\x00\x00\x03\x00\x80\x00\x00\n\a\x89\x12\x9c\x00\x00\x00\x01hꌲ\x00\x00\x01\x06\x05\xff\xffy\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=2 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=0 open_gop=0 weightp=0 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 pb_ratio=1.30 aq=0\x00\x80\x00\x00\x01e\x88\x84\x01\xff\xadn\xda\xc4\xf1Z\x80.\xee\xa9\\ \x9e\xa7\x90~\x13\xff\x19\x9am\xb4\x96\x18a\xe1\xc8RވD8\x16r\xe7+)\xee/\xed\xdc*\xad,\x15\xcd\xdc\xf2\b̋ZsӷY쒍\xae\xf0\xb4\x8bl\xa4\x15{;֚\b\xb1R\xbe\xde\xfa=R\xb5\xc2\x16eŵ\xa9$^\xf2U\xef=\xfcP\xac\x86\xb8\xac.\x7f9l\x12\xc5\x19\xc9`@\xbc\xd0M)\xa8\xd5\x1e\xd8^\x12u\xe5\x04É\xd6D\xd3M\x1d\xeaX\xeaaZ\x81\xc7\x17\x0e\xe4f\x88\n\x1e_\x84\xe1\rq\x15\x8e4\xf7\x1c\xb4\xa4\x99?\n\xb4\xfe\t\x1d\xdbr\x80c\xa4\x85\xb2y%Ӭ\x11\xe5\xca\xc9aI\xbf\x8d\x94\x96~\xbf_\xac9ѩ\xee,`ڂ\xb2\xccd?*\xedv\x04\x80\xb3\xca?\xae\xd8\x14=(0\xfb㰁@\v\x99\x8f\x1f\xe7\xb4V\x811%\xaf\xbd\x93\xe3\x88_\x17\xea}\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94\xc5\b\x9a\x98\x83]fGMHI.\x00\x16l\xb1\xce\xd97v/\xfc\xc3\xc1&sgPx\xad\xcd\xf3j&\x18XFaF\x87\xec^\xb4\x92\x99jP\x05K>\x8b+\xbb\xdfQ\xa05\x9e\xe6\xdb\xe7\xd1A`\xeb\x95h\xfd\x86#\xbc\xcf\x17\x1f3\v\x9d\xe7\fU\xe8։\x11z\xc0\xb7zK\xfa>\xaf\x97\f\xf2\xaa\xf3\xd3\xfb\xcf{\xa2\x85ش\xe49\xcb\xdb\xfeiB\xbf\xd2ܼN-K\x0e\xa5\xeax\x89w\xd2R\xec\xdc\x03\x8dA\xb8LGmm\xf1GJ\x13vϽ\x11\x96E\x9d\xb5.\xe0Vˇ#\"\x8f..њ\xe3\xa6\x0e") diff --git a/testdata/fuzz/FuzzDecodeAnnexB/seed-main_ipb_cavlc b/testdata/fuzz/FuzzDecodeAnnexB/seed-main_ipb_cavlc new file mode 100644 index 0000000..0e7c34f --- /dev/null +++ b/testdata/fuzz/FuzzDecodeAnnexB/seed-main_ipb_cavlc @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x01gM@\n酉Ѐ\x00\x00\x03\x00\x80\x00\x00\n\a\x89\x12\x9c\x00\x00\x00\x01hʌ\xb2\x00\x00\x01\x06\x05\xff\xffy\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=0 ref=2 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=2 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=0 open_gop=0 weightp=0 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 pb_ratio=1.30 aq=0\x00\x80\x00\x00\x01e\x88\x84\x01\xfe!\x11W\x06\x04/\xc0B\x8c\x84\x00\x02֠Q\xa5\x00\x04\xa1zq\xf9N\xa5\xf1\xeb\x15\xffൗ\xe6\xa46g\x12\xd7;tG\x11<\x18\xbc\x86R\xf0NR\xff\xf1\x7f;\t\x1f#\x0f\x98\x97+\xff\xdc\x03n\x94^\x9a3N\x9f\xbe\xb5\x1aA\x82)\xa9\x1b\xa3\xd5\xebq4\x18t1\"\xb2z\xbd@>c\x11\xb1\xc0*\xe3\xfb\xe5\x00\xf1LT\xe7\x00\x88O\xf7\xc0\x80\x00@\x00\x00\x04\x00\x00\x82a\x00\x01Q|\x000\x007cq\"P\xa2xS\tRL\x03\xc3\\\xf0d\x8d\xb8\x80\x1c\x95\xbf\xb9\x80\x02\xe8#\xaaF\xd4\xc0\b\xd3hP\x931\xdf\x05\xf0\x18B?Nɵ-\x80\b$\x99\xff\xfbN\x00\xa7)\xfc\x88҈\xa8\x88\xdb`\x16\x14\xff\x99H2\x10\xa3Z\xe7v\x90\x1c\x01\x14\xc82\x0eEj\x80\xb0\xb9\xc5\xc42\x93\xd0[H\xebQ\xa4\x18d-\"|z\xbc\na\xeab\x98\xa8pS\xd5\xeb\x06\xb9\f\xd2\a\xd3o\xfb\xe7\bfr\x14\xe4A\xd4\n\xe1zd1\x10\x11g\xab\xdc\xe0\xb2\xcd\x02\xb1\xd0\xfa#8!\x9d\bSt\x1dT\x1ac\xb5\xc3YU\xe7\xc0`\f\xc1\x018\x84\x84\xb6v@\xfa\xa7ҖH\xf07'6\t22\xa2\x02\xd5\xff\xf9f\xa1\xf5\xb8x\x84\x7f\xfb\x93 \x06Y\xc0\x82 \x0fp\x83\xc6Sf\n\xc3D!\x860n26\xc0\xed\x84\xfd\xf6\x85\xea\"T8\xc9\xe8\x97\xff\xa2+\x11Q&\xc85\x82\a\xf3R\x1b3\x9b\x96\xaa\xe6\xe2'\x86t \x94\x9c-&\x7f\xfb\xf3R\x1b3\x9b\x96\xf5\xcc\x1d\xa8\xd2\f2\x16\x91x=^\xd2ď\xb2\x0f\x98\x95!\xff\xd6\aHFLP\x16W?\xdfP\x0f\x14\x85NP\x19\r\xfe\xf9j4\x83\f\x85\xa4^\x0fW\x81L\xd3\tHr\n\x83\xd5\xe9\x00\a\x90\x84LP\x1d/\xef\xfdp\x86&\xa9+R\x0e\xa0\xc8Ea\x02+%RNc\\\xc3\x10\xbb!\x17\xa7\xcc\x00]\xcc64mO\x84\x99\x19\x01\xe4\x1a\xa2\x1a\x96\x12CEa\xb50\x9b\x12|\xe7\x1b\x13\xeb\x00pādLf\xc4\x16\xd0k\x8aB\x84\xbf?dG\x1f\xfe\x88\xe2*\x0e\xd4!\xd7\xc0\x01\xe2xgB\tI\xc2\xd2g\xff\xa0q\x00@\x19\x97\x9a\xa1\xb39\xb9o\\\xdcE\xe1\x95\x18Ш\x17\xca\xff\xf0\x0f\xab<$&+\xe5\xdc\xecH\xfb \xf9\x89R?\xfc\xe0\x86.!.R\x0e\xac\x06\x9d)\xda\xc0\xdad\xfd\xf5\xa8\xd2\f2\x16\x91x=^\xbaN\x18T#\xccI\xea\xf4\x80\x03\xc8B&(\x0e\x97\xf7\xfe\xd0\x1cr:R\x81\xbb\x7f\xbe\x01\xc8\x108\x1d\x00\x03\x00$\xecٲSk\x9e\x93d\r\x19\xb7\r#3\x17A\xeaQ\b`\x02\xe60\x8c\x81\xb5+\xe1͡\"\xaa\xfd\xcbH\x87\n\xac\x83\x99\a\xe8%\xe4!\x05\xaf;am\x7f\xfdl\x0eRP\xef\x93I\xff\xffڈ\xa8\x88\xf0\xeci\xff\x9a\xa3\x12)9o\xf9\x83\xe0\x00\xf1xeF4*\x05\xf2\xbf\xfdp\xd40\x88O\x9bǫ\xdf \x03X\x8c\x90\xa0\x7f\x7f\x7f\xe86N\x1a\x90\x8er\x1e\xafm\x16\xf3A\xd0dz\x7f\xa0,\xd2\xcd\x13z\xb5@\xd3⥃Y\x1f\xdfb\x14\x84\x00J\xa6\x80\x1f.\x03\x89\x98=6\x00\xe9") diff --git a/testdata/fuzz/FuzzDecodeAnnexB/seed-main_ipb_pyramid b/testdata/fuzz/FuzzDecodeAnnexB/seed-main_ipb_pyramid new file mode 100644 index 0000000..ab265a7 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeAnnexB/seed-main_ipb_pyramid @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x01gM@\n\xec\xa1bt \x00\x00\x03\x00 \x00\x00\x03\x02\x81\xe2D\xb2\xc0\x00\x00\x00\x01h\xeb\xe2K \x00\x00\x01\x06\x05\xff\xffy\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=25 keyint_min=2 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=28 ip_ratio=1.40 pb_ratio=1.30 aq=0\x00\x80\x00\x00\x01e\x88\x84\x00\xff\xa5A\x06\xfb\xb4\xf0#\xacD\x9a\x0e\xb3;\x02\x1c\xec\f\xd9M\xb7x\x99|\xbe\xf5TZ\x8e\x8c<9\xc2\xfcv9\xda\xf0@j\x9f<@ \x85.Ϊ\xe1\x85\xf3\x06\x9d)\xf7\x00\u07bb\xf2m?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ec\x0f\xa9\xa4o\xf6\x91e\xbef\xd8\x0e\xafͯ\x1d\x18\xfd\xd7Ϙ4\xcf\xe3\xdc|\xfe]\xcbA)\xefr\xdb\x15c\x92z١\xac~`$\x12l\x10Ҷ\xcbB~D\x9b\r\xf1\x1e\xa7\xd9\n\x85*\xd5JJ$t\tJ0\xeeK\xda\xd6\xe2\xb8\xc6\x7f^g\x035\xf3_Q\xc0\xe9Da\xf2\xb9<ۘ\x8f\xc4f\x8aH\xf2u\"K\xd1\xdeZ\xdbs\x16\xc2چ\xceN\xa3l>\xa0\x8c\xe2\xab5\xc4\xd0\xdd\x15\xf9\x13\x06w\x01\a\xb2\f\xdc@\x1f\xb6\xc2U\xb8]\xect\xff\xfd\x92\xddſ\x1fG\xe2\\\xa9\xf4R\x9b\xa1T\xbe\xb5\xd1\xfe-\xa9m$\x06\xac\x84\x81\x1f@J\xed\xfa\x9aq\xec\x8d\x1b\\c\xdcu\x97\x1a\xf1p\xfc\x12\xf1\xf9\xe2\a/\v/7\x8f\xabO\xe3\xfc\xde\xf2\xc4 \x99M,\xed\\Kzy\xf2\xdb\xe1\xec\b\xae-\xbb\xf5\f\xf0\xb9\xa4E6\xe0\xea\xf2\xe1\xac\x14\xff:\xace\x9b\xcft\xa1\x12\v\xa9\xcd\toD\x01Q\x83X{l\xb6\xc3\xef\x8c\f\xf4hw\x1f\x80_\xccҡڴ\xe0\\W}ܾ\x9f\r\x96\x80\xfcko?\x93\xffTz\xa1\x98\xc2\xf0Ɵ\xc8\xfb-m\xc9C\xb8q\xee5\xf9Ǣi\xb4\xa1\xc0\xdd\xcf\x13%G\x9eM\x18\xe0v\x1f\x1b\x87)I\x85}\xe5\xd4MKʄ\xc6Έ") diff --git a/testdata/fuzz/FuzzDecodeAnnexB/seed-main_ipb_temporal b/testdata/fuzz/FuzzDecodeAnnexB/seed-main_ipb_temporal new file mode 100644 index 0000000..6f954d7 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeAnnexB/seed-main_ipb_temporal @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x01gM@\n酉Ѐ\x00\x00\x03\x00\x80\x00\x00\n\a\x89\x12\x9c\x00\x00\x00\x01hꌲ\x00\x00\x01\x06\x05\xff\xffy\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=2 b_pyramid=0 b_adapt=1 b_bias=0 direct=2 weightb=0 open_gop=0 weightp=0 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 pb_ratio=1.30 aq=0\x00\x80\x00\x00\x01e\x88\x84\x01\xff\xadn\xda\xc4\xf1Z\x80.\xee\xa9\\ \x9e\xa7\x90~\x13\xff\x19\x9am\xb4\x96\x18a\xe1\xc8RވD8\x16r\xe7+)\xee/\xed\xdc*\xad,\x15\xcd\xdc\xf2\b̋ZsӷY쒍\xae\xf0\xb4\x8bl\xa4\x15{;֚\b\xb1R\xbe\xde\xfa=R\xb5\xc2\x16eŵ\xa9$^\xf2U\xef=\xfcP\xac\x86\xb8\xac.\x7f9l\x12\xc5\x19\xc9`@\xbc\xd0M)\xa8\xd5\x1e\xd8^\x12u\xe5\x04É\xd6D\xd3M\x1d\xeaX\xeaaZ\x81\xc7\x17\x0e\xe4f\x88\n\x1e_\x84\xe1\rq\x15\x8e4\xf7\x1c\xb4\xa4\x99?\n\xb4\xfe\t\x1d\xdbr\x80c\xa4\x85\xb2y%Ӭ\x11\xe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\xc4\xc0\xa7\xe6]\xaa\xcb\xf00\xee\x8c\xd1\xd8\xc5-P\x83\x93\x04\xf2\xb5ۤqCC,\xe6\xb8L\xe5\u009c\x85\x00\xa7\xf8a\x922\x06\xbb\xa5\xee\x8e\xf8j\xfa\xc9)\x85\x90\x94\xc5\b\x9a\x98\x83]fGMHI.\x00\x16l\xb1\xce\xd97v/\xfc\xc3\xc1&sgPx\xad\xcd\xf3j&\x18XFaF\x87\xec^\xb4\x92\x99jP\x05K>\x8b+\xbb\xdfQ\xa05\x9e\xe6\xdb\xe7\xd1A`\xeb\x95h\xfd\x86#\xbc\xcf\x17\x1f3\v\x9d\xe7\fU\xe8։\x11z\xc0\xb7zK\xfa>\xaf\x97\f\xf2\xaa\xf3\xd3\xfb\xcf{\xa2\x85ش\xe49\xcb\xdb\xfeiB\xbf\xd2ܼN-K\x0e\xa5\xeax\x89w\xd2R\xec\xdc\x03\x8dA\xb8LGmm\xf1GJ\x13vϽ\x11\x96E\x9d\xb5.\xe0Vˇ#\"\x8f..њ\xe3\xa6\x0e") diff --git a/testdata/fuzz/FuzzDecodeAnnexB/seed-main_ipb_weightb b/testdata/fuzz/FuzzDecodeAnnexB/seed-main_ipb_weightb new file mode 100644 index 0000000..cc3f4b3 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeAnnexB/seed-main_ipb_weightb @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x01gM@\n酉Ѐ\x00\x00\x03\x00\x80\x00\x00\n\a\x89\x12\x9c\x00\x00\x00\x01hꬲ\x00\x00\x01\x06\x05\xff\xffy\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=2 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=0 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 pb_ratio=1.30 aq=0\x00\x80\x00\x00\x01e\x88\x84\x01\xff\xadn\xda\xc4\xf1Z\x80.\xee\xa9\\ \x9e\xa7\x90~\x13\xff\x19\x9am\xb4\x96\x18a\xe1\xc8RވD8\x16r\xe7+)\xee/\xed\xdc*\xad,\x15\xcd\xdc\xf2\b̋ZsӷY쒍\xae\xf0\xb4\x8bl\xa4\x15{;֚\b\xb1R\xbe\xde\xfa=R\xb5\xc2\x16eŵ\xa9$^\xf2U\xef=\xfcP\xac\x86\xb8\xac.\x7f9l\x12\xc5\x19\xc9`@\xbc\xd0M)\xa8\xd5\x1e\xd8^\x12u\xe5\x04É\xd6D\xd3M\x1d\xeaX\xeaaZ\x81\xc7\x17\x0e\xe4f\x88\n\x1e_\x84\xe1\rq\x15\x8e4\xf7\x1c\xb4\xa4\x99?\n\xb4\xfe\t\x1d\xdbr\x80c\xa4\x85\xb2y%Ӭ\x11\xe5\xca\xc9aI\xbf\x8d\x94\x96~\xbf_\xac9ѩ\xee,`ڂ\xb2\xccd?*\xedv\x04\x80\xb3\xca?\xae\xd8\x14=(0\xfb㰁@\v\x99\x8f\x1f\xe7\xb4V\x811%\xaf\xbd\x93\xe3\x88_\x17\xea}\xe1\x83U\xe2\xf7\xe9l\f=g4\r\xea\xe1\x1exY\xeb\xee\x8e\xd8@\xc8\xc1\n\xbfP\xab\xa4\xd1'\x95ZX\xf1\xcb\b\xec.\x91W/+\xa8\xcc1ml\xe4\n\xeb&q\xf2\x044Y\xf0\xa7\x98at\xccx\xba\xb7!\xe3\xdf\xf7\x83i\x13֦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xe7\fU\xe8։\x11z\xc0\xb7zK\xfa>\xaf\x97\f\xf2\xaa\xf3\xd3\xfb\xcf{\xa2\x85ش\xe49\xcb\xdb\xfeiB\xbf\xd2ܼN-K\x0e\xa5\xeax\x89w\xd2R\xec\xdc\x03\x8dA\xb8LGmm\xf1GJ\x13vϽ\x11\x96E\x9d\xb5.\xe0Vˇ#\"\x8f..њ\xe3\xa6\x0e") diff --git a/testdata/fuzz/FuzzDecodeSample/seed-base_intra_nodb b/testdata/fuzz/FuzzDecodeSample/seed-base_intra_nodb new file mode 100644 index 0000000..b029225 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeSample/seed-base_intra_nodb @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x15gB\xc0\n\xdc,N\x84\x00\x00\x03\x00\x04\x00\x00\x03\x00P\x82[\xaf\xfbk\x8e\x8c\t\x9dB\xf1\xea\xf5+\x8c\r\x99Bn\xafP:̚8/\xc7\xf7\xca\x0e+.\xae\x1b7\xfb\xe0@\x00P\x01\a.\x10\x00\x97\x80\x00\x80 \x00\xdf3\x121\xd0#\xb7\x8b<\x1c\x1a\xe7F\x93\xf9\x03\x9b\xff\xf6\x98\n\xe6$\xa3j`\x06\xeb\x8a*\xb0\xa86\x04t\xa9\xce\xf5\x80\x8c#\xff\xbf\x18\x15\x98\xec\x1bS\x88\xa8\b\x83E\x80X\x7f\xe7Q\x91\x18]\xff\xc9\xff\xc0\xf0\x10\x93\x11IZ\xa0L\x98\xdf!2㸝\xfe\xa5тGP\xa8\xd5\xe0j\xecJ˜s\xd5\xeb\x1b\x90\x92C\xf1g\xfb\xe7&.ʨ\x83\xa8\x1b\xaf\x16d\xc2y\xea\xf5\xa5:\x06\xc4,\x1bo\x9cLy\x15\xaa\x0e\xaa\x0e*.\xaa\x13;\xfb\xe0\x182\x04LG2\xf4;\xc6\xd1y\xe1\xf4\x16\xa2\xb4Ԃ\x8b\xff\xef\xcb\xe0;\xe0\xe4O\xffpHe\x19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x1b\x02\xbeg\x85A\x94+\xe2y\x8a\xe7R\x16\xab\xff\xe6:\xdfhz'\xff\x8d\xdb*WC\xa2\xe5v75\xf9\x87\xe3\x7f\xf9\x89\xe9\\az\xff\xfeDW\x15\x02\x1e?\xc0ii2\xcf\xe5\xffڬ\xcd\x10\xa2⩻\xfc\r\x80\x00\x80\xeb/\x9dCfrw_\v\xff\xee\"\xf1\x95\x18\xd1\xd0\x7f#\xffԺ0\x91T\\\xd5\xeaW\x18h\x8a&\xea\xf5\aQ\x13E\v\xb3\xfd\U0008328b\xaa\x84\xcd\xfe\xf9p\xd41\xb9>l\x1e\xaf]'\f~G\x99\xe7\xab\xd4\x0e\xb32G\x02\xff\xff|\xa0q\xd9Ҹ\x13\x93\xfd\xf0 \x00.\x01\x01/\x05\x00\xd3\x1d\x1b\x00bʙD\x04\x9d\x00A\xb56\v\x88R\x8d\xa9\x88\x00%A\b\xab\x1bS\x8a0\xb8ڙY\xb4\x83\x1bS`\x14\xee[\x06\xd4\xc4\x00\xa7)\xfc\x1bS\x8dC\xfe\x1c~\x19=\xee\xa3\x12);\xdf\xf6\x04+\x86\xa1\x8d\xc9\xf3Pz\xbd\xf2\x00\xd6fH\xe0_\x7f\x7f\xef\x8a\x00\x02\x03^\x10\x00\x13\x04$\x0e\b\x00\b\x88(\xc8$\x8c\x82\xaeC b\xef\x83\xc1\t[\xe8\xc8\r\x12\x17\xfd\xdec\xc7\x19\x0fAٴ\xd3\xd8މ\xff\xfb_\xff\xc4>\x1b\xc0\xe4\x03\b\x83\xe0\xe0@\xe4@\x11G\x01\x89qZ\x82 \x00 > \xa00\x00\x13\x00\x01\x000\x00\x10\x02\x03\xccW0\x00\xb2\x90\x95eC\x8dA\x81\xc0\x10\xc2n`\x18>\x06\t\x17\x82\xc3\xc4n\xe7\xc3\xff\xe0\xaf\x14\x00\x04\x00\xb8\x80\x10\x05\x88\x00\x02\x05\x00\x00!G\aA1\x83\xa0\x98\x83\x80\x01p\x00\x10\bc\a\x00\x02\xe0\x00 \x10\xc4F\xbf\xc0\x03\x80\x84>\xc3_\xdc\xff\x98\xb4\x04\x80 \b\x04\xc0\x198;\x85\x80lJ\xc1\xdc,\x02B\xcc\b\x1e\xc1\xe6\x05\x82\\0\xc1`8\xfe\x7f\xfex\xfb\x7f\x19wx:\xf8dd\x81\xc4C\xff\xc1ۂ\xf3\x00oM\xe2@\xf7\xe6<~\x86\xff\xbf*\xfd\xf1j\x1f\xe0`\x14\xbf\xe9\x8b|\x9e\xe39\xec\uf740d\x97\x18\x7f\xc7AϞ\x1f\x16\xb1R\t[\f\xfe7\xf2¬\x86\xa4\x89Z\xe7\x98~0\x1c(\x16\xc6s\xf0\xeb\xc0\xf9\x85\x1fO\xf4\xd1\"\n\xeb\x81\xf8\xa1^\xd6u\xc8q\xdb<\xff\xfd\xa8\x83\x93\xc0\x00\xbf\xe0\x00\xf1xʌh\xe8?\x91\xff\xefQo4\x1d\n\x86ö\xc3K\x8a\x96\rdO\xf7\xc1\x02\xc0qA\x13\xef\tx\xac\xd9\x12}\x81\xacH\xff\xc6\x1d\x15.\xfe\xef\x18G\x92l\x1e\xf0\\\xdaKa)\xff\xffy\xd6\x03\x12\xf0\xd8\xdf\xfd\xd4bE'{\xfe@\xe0\xe0@\xea`\v\xa6\x80\xc4j\x1b\x9d\xc3P\xc6\xe4\xf9\xa8=^\xf9\x00k3$p/\xbf\xbf\xf7\xc2\x000\x00\n\x01A#\x02\xba\xf59\t:\b\x803)fb:e\x1b\x04%o\xa3\x06*&?\xb8:\xd9\xf6\xd3\f\fwY\tf\xd3O`\xcfo\xff\xed\a\x80\x8e\x03\x0f\x01\xff\xf5\x00('\xc0\x138\x14n\x7f\x81\x02̐\xdc\xff\x02\x11$he\xef\xc5\x03\b\x101\x83B\x10@\x10\xfer33\x13\\R\x1f\xef\xb2o\x90\xc9\xcd\xf6\xdb\bZ\x8b \xbd\x8aL\x81\xa5\xbf8Ȍk\bC\x84\\\xc1\xfc\xb6D@\x9d\xfa\x109\xdfkdD\xc6\xe4\x00\x00\x00\x15gB\xc0\n\xdc,N\x84\x00\x00\x03\x00\x04\x00\x00\x03\x00P\xb7\x0f\x10\x8f\xffrd\x00\xcb8\x10D\x01\xee\x10x\xcal\xc1Xh\x840\xc6\r\xc6F\xd8\x1d\xb0\x9f\xbeнDJ\x87\x19=\x12\xff\xf4Eb*$\xd9\x06\xb0@\xfejCfsr\xd5\\\xdcD\xf0΄\x12\x93\x85\xa4\xcf\xff~jCfsr\u07b9\x83\xb5\x1aA\x86B\xd2/\a\xab\xdaX\x91\xf6A\xf3\x12\xa4?\xfa\xc0\xe9\bɊ\x02\xca\xe7\xfb\xea\x01␩\xca\x03!\xbf\xdf-F\x90a\x90\xb4\x8b\xc1\xea\xf0)\x9aa)\x0eAPz\xbd \x00\xf2\x10\x89\x8a\x03\xa5\xfd\xff\xae\x10\xc4\xd5%jA\xd4\x19\b\xac Ed\xaaI\xcck\x98b\x17d\"\xf4\xf9\x80\v\xb9\x86ƍ\xa9\xf0\x93# <\x83TCR\xc2Hh\xac6\xa6\x13bO\x9c\xe3b}`\x0e\x18\x90,\x89\x8c\u0602\xda\rqHP\x97\xe7\xec\x88\xe3\xff\xd1\x1cEAڄ:\xf8\x00\xc3_\x12w\xce\x1fĒ H\x00\x15\x00\x03\x01\x90\x80\xe2\x10\a\x02\x00\x00\x87\x98\x1c\x808\x16\x00\x04\b\x92\n\xe2P\x01\x9e\xcb(\x85p\xb0\x01\xb0\xc4 \x18.0\x0e\xff\xff\xf3\xfe\x04O\xe8\xad\xe5\xbeDuj\xff\x06\b\x90\x01\xc8a\x02C\x10H/#\\\x13\xecy;\x01AD\x7f\x83\x02\xf7\xe2E[̩\xfe8\xfd\r\xf7\xdfh{=\xef\xcf$`s\xc1@l\xfe3\xdfԲ\xf9lv\x86\x91B\xe5\x87>q\xf8\x0eQ\x80\x84\x7f\x8e\x82\x1f<\x01\xf5\xe2I\x1b\x859\x04\t\xba\x86\xec\xd2h\xfb9ޤn@u\x9c\x81\x10\xcd/\xb5\x10\xfc`\xb8Pv3\x9f\x87\xdf\xf6\xd2\x12K\b\x80\xd4`\xfc\t\x9a\\u\xc8K\x16\xea`\xfc/5\xe1\xeeu\xc1\x89r\x00\x00\x00\x15gB\xc0\n\xdc,N\x84\x00\x00\x03\x00\x04\x00\x00\x03\x00P\x9e\xafH\x00\x02\a \xa0\x18\x16\"U\xa18\x17\xa1\xbf\xbf\xf6\x80\x00\x10)\b\x02F\x9b\xa4\xc5\xd8,\xed\x87\xfb\xe0@\b \x00\xa0\aB\x01(\x00\b?\x80\x00\x85'2\xcap\xae\x15\xe9l\x9bd\x1a\xe3\x02w\a!\x84\nMrA~\x99p\x00\x02\x00\xe0b\x81eM\x89f\x88CZO(\x9e\xb0@\x00 P\xac\x00-\x000-\x11\xd1TX\x7fw\x105`\u00972\xbdR\x14L\xbdO\x00\x83\x88h\x80\xac\x8eT\xb6@)&J)\xf0\x00\x02\x03\x80\x05\x1a\x10p@_\xe3p\xe3<\xe4ث|\x01\x80\x00\x81[\t\x00\x8d\x80\x9c\"y$8-\xf0\xf7\xc4T\x04\x7f\xb1\xa7\xfe\x00`\xcc \x1ap\xc1\x90\xa6\xee\xe7\xf7\xfd\x95\a\xc0\x01\xc0\b\x01\tX\v\n\xa4lQ\x83\xb4\x02\xfe\xee\xdf\xfe\xb0 \x81+ ..\xf4\x8bܫ\xe8\xf5{\xe4\x00\x01\x02\x90\xa0 i\xb2L\x1d\x82\xde\xef\xef\xfd\x04\x06\x10!t\x05Һ$nR\xe8\xf5{\xc1\x84\x03\x94\x7f\vp\v\x91\x18L!\x84ـR\b&\xef4\xbb\xed\x14U^\xbc\xa6\xe3\x00\x01\x01\xf0\x04,ef\x11QM\xc2k\xef\x13\xff\xfc \x00\b\a\x00\"\x10\x00\x04\x05\xc0\x01W$\xd0b\x00=]O-\x00\x19\x0f\xea\xf3I\x86(\x03\xd4Բ\xd8\x01\x90\xfe\xa6\x80\b\x01\x9ep\xfe%は\xad\x91\xeb\xff\xda\x000\x06q\xe3") diff --git a/testdata/fuzz/FuzzDecodeSample/seed-base_ip_qp26 b/testdata/fuzz/FuzzDecodeSample/seed-base_ip_qp26 new file mode 100644 index 0000000..1633ba9 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeSample/seed-base_ip_qp26 @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x16gB\xc0\n\xda\v\x13\xa1\x00\x00\x03\x00\x01\x00\x00\x03\x00\x14\x0f\x12&\xa0\x00\x00\x00\x04h\xce2\xc8\x00\x00\x022\x06\x05\xff\xff.\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 aq=0\x00\x80\x00\x00\x05\xdce\x88\x84?\xc4\"*\xe0\xc0\x85\xf8\bQ\x90\x80\x00Z\xd4\n4\xa0\x00\x94/N?)Ծ=b\xbf\xfc\x16\xb2\xfcԆ\xcc\xe2Z\xe7n\x88\xe2'\x83\x17\x90\xca^\t\xca_\xfe/\xe7a#\xe4a\xf3\x12\xe5\x7f\xfb\x80mҋ\xd3Fi\xd3\xf7֣H0E5#tz\xbdn&\x83\x0e\x86$VOW\xa8\a\xccb68\x05\\\x7f|\xa0\x1e)\x8a\x9c\xe0\x11\t\xfe\xf8\x10\x00\b\x00\x00\x03\x00\x80\x00\x10L \x00*/\x80\x06\x00\x06\xecn$J\x14O\na*I\x80xk\x9e\f\x91\xb7\x10\x03\x92\xb7\xf70\x00]\x04uHژ\x01\x1am\n\x12f;\xe0\xbe\x03\bG\xe9\xd96\xa5\xb0\x01\x04\x93?\xffi\xc0\x14\xe5?\x91\x1aQ\x15\x11\x1bl\x02\u009f\xf3)\x06B\x14k\\\xee\xd2\x03\x80\"\x99\x06AȭP\x16\x178\xb8\x86Rz\vi\x1dj4\x83\f\x85\xa4O\x8fW\x81L=LS\x15\x0e\nz\xbd`\xd7!\x9a@\xfam\xff|\xe1\f\xceB\x9c\x88:\x81\\/L\x86\"\x02,\xf5{\x9c\x16Y\xa0V:\x1fDg\x043\xa1\nn\x83\xaa\x83Lv\xb8k*\xbc\xf8\f\x01\x98 '\x10\x90\x96\xce\xc8\x1fT\xfaR\xc9\x1e\x06\xe4\xe6\xc1&FT@Z\xbf\xff,\xd4>\xb7\x0f\x10\x8f\xffrd\x00\xcb8\x10D\x01\xee\x10x\xcal\xc1Xh\x840\xc6\r\xc6F\xd8\x1d\xb0\x9f\xbeнDJ\x87\x19=\x12\xff\xf4Eb*$\xd9\x06\xb0@\xfejCfsr\xd5\\\xdcD\xf0΄\x12\x93\x85\xa4\xcf\xff~jCfsr\u07b9\x83\xb5\x1aA\x86B\xd2/\a\xab\xdaX\x91\xf6A\xf3\x12\xa4?\xfa\xc0\xe9\bɊ\x02\xca\xe7\xfb\xea\x01␩\xca\x03!\xbf\xdf-F\x90a\x90\xb4\x8b\xc1\xea\xf0)\x9aa)\x0eAPz\xbd \x00\xf2\x10\x89\x8a\x03\xa5\xfd\xff\xae\x10\xc4\xd5%jA\xd4\x19\b\xac Ed\xaaI\xcck\x98b\x17d\"\xf4\xf9\x80\v\xb9\x86ƍ\xa9\xf0\x93# <\x83TCR\xc2Hh\xac6\xa6\x13bO\x9c\xe3b}`\x0e\x18\x90,\x89\x8c\u0602\xda\rqHP\x97\xe7\xec\x88\xe3\xff\xd1\x1cEAڄ:\xf8\x00\xc3_\x12w\xce\x1fĒ H\x00\x15\x00\x03\x01\x90\x80\xe2\x10\a\x02\x00\x00\x87\x98\x1c\x808\x16\x00\x04\b\x92\n\xe2P\x01\x9e\xcb(\x85p\xb0\x01\xb0\xc4 \x18.0\x0e\xff\xff\xf3\xfe\x04O\xe8\xad\xe5\xbeDuj\xff\x06\b\x90\x01\xc8a\x02C\x10H/#\\\x13\xecy;\x01AD\x7f\x83\x02\xf7\xe2E[̩\xfe8\xfd\r\xf7\xdfh{=\xef\xcf$`s\xc1@l\xfe3\xdfԲ\xf9lv\x86\x91B\xe5\x87>q\xf8\x0eQ\x80\x84\x7f\x8e\x82\x1f<\x01\xf5\xe2I\x1b\x859\x04\t\xba\x86\xec\xd2h\xfb9ޤn@u\x9c\x81\x10\xcd/\xb5\x10\xfc`\xb8Pv3\x9f\x87\xdf\xf6\xd2\x12K\b\x80\xd4`\xfc\t\x9a\\u\xc8K\x16\xea`\xfc/5\xe1\xeeu\xc1\x89r") diff --git a/testdata/fuzz/FuzzDecodeSample/seed-base_ip_qp40 b/testdata/fuzz/FuzzDecodeSample/seed-base_ip_qp40 new file mode 100644 index 0000000..4bb2bd7 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeSample/seed-base_ip_qp40 @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x16gB\xc0\n\xda\v\x13\xa1\x00\x00\x03\x00\x01\x00\x00\x03\x00\x14\x0f\x12&\xa0\x00\x00\x00\x05h\xce\x03\x92\xc8\x00\x00\x022\x06\x05\xff\xff.\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=40 ip_ratio=1.40 aq=0\x00\x80\x00\x00\x05\xdce\x88\x84?\xc4\"*\xe0\xc0\x85\xf8p\x00{\xfc\x00Ǘ\xc2-\xfe\"\xbf\xff\x9f\x84©Bn\xf5\xf7\x0f{Ώ6\xfb(\xf2\xfa\xd9\xefmGu\xcbF\x97\x1edӒ\xbaw\x99\xb9nr\xa3\xb2\xc4\t\xb2\xd8U\xee\x88\x15\x9b\x8e\x17\xb3\xd0\a\x91K\x00\n\xea\x9a2QN\\o\xf0F6\xb9?\x7f\xc4U\xc4T]\xf7\r}\xe66\xff\xc0\x13{\xd7\xd6\xe6y\xf8\x86WSß{U\x1c\xdc\xe7\x9d\xeb\xd8\xf3e4o\xa1\x94\xd4ܺO\xbb?6y\xd9\xed\x8bݺ\x80\x14\x1dO\xc2G\xc0\x87X\xd1I\x87\xcb\xd3\xfd\x85\xa2\x91\x05\xad\x82ZfCE!\x1f\xaf<\x97\xbf\x91\x1cE]ڎE_\x001랯\xb4\x1b\x13&\xc6\xfb\xff\xa1\xbb\xbc\xbe\xe1\v\xaa\xfbܨ\xe8\xde[\xa9|tV\xb8驹s{\xac=\x1c\xd9\xfa7\xd1\xfc\xe5ge\x82N \"v\xaa(\xcc\xea\x9d'\xfbF\xb9CEU\x1f\x86'\x99\x18\xfd\xb3[\xb2\xdc\xf7\xf9\xc6l\xceѥ\x11P\x11\xfeƋ\xf6ga\xf0\x13w\xaf\xb8;\xbd\xfe\xf8\x9c\xf3\xbd{1\xee\xd9W%\xac^\x82\x9b\x1c\xfc\"פ軫\x8f\xd1\xd5\xfc3\x1d\xf27Xd:\xe6n\xb2\"\xaf\x9b\x97\xff\xe1*\x04ϯp \x00\t\xe4B\x9dߧ\xfe\xe0\x97\xa5\xcf+\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.\xe8\x8c\xeb\xf8D^\x93\x17\x7f\xffx\x03=&\xf9\f\x9c3m\xb55\xff\xfb\xe6֓ io\x058\x00Fo\xba\xee\x85,\"F|\x8a}\x87\x8eB!{W\xa7\x9b\xd6\x18`\x1f\xf0W\xc3^\xc30\xe0`\x00x\x113\xce߀ϔ\x8c\x80!!\xcb\x0f\xe0\x18\a\xc3A\xcf\bER\xc1e\x84\xa0\x8fXWs\x00Ay$oB$\x04R.\vP\xa0\xf9*\x1a\x96\xaa_\xff\xf1\xff\xc3@\xbb\x06\ne\xc0D\"f^\x13W8\x04\xa5&\xc1\xf6\xbf\xe3\x05\bP/\xf5]\x9f\xc2!\x94\x10!\x010T\x81\xb7, v\x9a\xd6DP\u05fc\xd8X\xe8\xe8%C\xae\x18\x8e\xc0\xa6\xed~\x01\xf0\r\x02\xcf\xc3L\x988&\x87\xd4\xe6\xba\xefv\"gm\xe3o\xe0\xde\x03\xe01\xff\x9b.\f\x1d\x93\xfd͡\x92\b\x10I\x06}\xad\x19\x87\xd6\xfco\xf8M|)\xfb\xfc?\xd8k\xaf^\x04\x89\x04X\fG<\x8b|\xe7\x9c,{q\xc2+\xf6\xec\x80з8\x7f\xfe\n\xa0\x88\x11\"\x10u\xbe\xfbE\x06R\xf6\xaf\xfaz\xebt\xee\x9d\xc5;\xa6\xe8\xec\x7fα݈\xfc?㢨{<\xf0\x10\xd9\x18\aZ\xbb\xd3\xf8@\x048\xb5\x02\xa6\x10\x00S\xbdU\xd9\x01u\u008ca\xe1\xe0\x02-\xffq\x83\x8e\xac\xff\xb4>\xfb\xff\xff\xe0>\x03\boĒ?\x0e\xbd\xcf\xee\xc2\x16\xe5`\xf6\x10\xb7\x0fk\x00\xc6\x01\xff\ro\x89\x91\xd4DP0\x82=\xbb\xee\tH/aw\xd7\xf1\xc7\x18o\xc3//\x8cPlV\xf8\x97\xa64\xbf\xb7\v8\t\x1b\x99\xb57\xff\x12L\xe3=\xa0q\x97\xe0\f\xa5\x98L\xee\xdd\xe0\r\x95\xe9\xc8\xd3I맧\xa7\xa7\xa7\xb5Xq\x80\x7f\x905\x83\x05 \xe7$x\x14C\n\xc1\x83\x05w\x0e\xe9.\xe6\aD\xf7\x01\x16\xc3\xd6\x01\xd1=\xcex\xfc8x\xfe\x1a\xf4\xe2\xff^\t\xa4\xf9\x9d\x86\x9e\xff\xc1a\xf8\xd7\x7f<~\f\x12e\xae\xcf\x10'\x85\x15\xaa\xaa\xbfڻNd\xda\x001\n,7dݮ\xcd\xd3[&\x8e!\fG\xe1\xa1ӐoĒ zy\xbf\x84\"\u0084\x00ATY\xaa\x1b69\x9a\xc8\v=\xc8\xe9\xbb@T^\x94\xcc\x00)\x9f\x81 It\xf4\xf4\xf4\xf4\xf5\xc2\xcf\xff\xfe\xfcZ\xbc=\xf7\x80\x9a\xf8\xb9\xef\xfc7\xd1\af\xcf)\x1e'E\x1c\xe9\xa0 \xfb\xef\x8eB*:H\x02I-\xd41\xff\xbe\v\x0f\xf6\v9#\x8d`P\x00\b\x05\x00\x1c\xcc^\xcc_\xf7U\xcd\x10\x04\xbb\t\xe4\x04B.C\fWàԄ\x1f\x88\x12!\xbc2\x11\x1a8@\x02\b\xd3\x06\xb8\x8bkG׀\xbbN\xac\xfb\xb4\x05:\x9b\xd1\x00\aU\xfb\xfdt\xf1N\x02V\x88߁\x13\x01\x8c\x110") diff --git a/testdata/fuzz/FuzzDecodeSample/seed-base_ip_ref3 b/testdata/fuzz/FuzzDecodeSample/seed-base_ip_ref3 new file mode 100644 index 0000000..6417578 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeSample/seed-base_ip_ref3 @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x15gB\xc0\n\xd9\x02\xc4\xe8@\x00\x00\x03\x00@\x00\x00\x05\x03ĉ\x92\x00\x00\x00\x05h˂K \x00\x00\x022\x06\x05\xff\xff.\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=0 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=25 keyint_min=2 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=28 ip_ratio=1.40 aq=0\x00\x80\x00\x00\x05\xdce\x88\x84?\xc4\"+\x06\x04!\xf8\bQ\xb3\x00\x0fZ\x86\xb0k\x80\x13\x13\xc3:\x10JN\x16\x93?\xfc\xcc\xfd\xd21\"\x93\x96\xff\x04\xe2/\f\xa4cB\xa0\x7fg\xff\x8b\xf6I\x17d\x16\xb3ԇ\xffAcO\x8a\x96\x04ҿ\xbe\xee\x1a\x86\x11\v\xf3\xf8\xf5z\xe98c\xf2<\xcf=^\xa0:B2B\x81\xd3\x1f\xdf(\x0e9\x1d)@\x9c\x9f\xef\x81\x00\x01\x80\x01\x83\x1b\b\x00\b\x9d@\x00@H\x007\xcc\u0095\x98\\0\xa4\xa9L\x0e\rs\xa3$m\xc4\x03\x89\xff\xfbL\x01\\Cj6\xa6\x00n.(RXj\x0f\x80\x85\r\xa9\xd2\xf5[\x00B;\xff\xf7\x8c\x02\x9d\xcb`ڜEb6\x8bE\xa9\xff5Cfsr\xd5\\\xc1\xc0\x1a(l+\xabT\t\x89\x86TcgA\xd6\xce\xff\\5\fnO\x9a\xa3\xd5\xe0S\x1c\xa4r:\x14s\xd5\xeb\rv\"H=\x93?\xdf9\x19;9]\aP+\x8a\xd2b2\x04\xf3\xd5\xee\xa2\xdeh*\x19\r\xa23\x88ʌ\xe4\xa8:\xa84\x8e\x96\tdG\x9f\x01\x80\xc8\x10\\\x83\x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eG\xff\x81\xa4\x00\x04\vYz2P19,\xb5ܧ\xff\xf0\x16\x17\xa7\x17\x90\xca^\x1a\x93?\xfd\x8b\x94`MS\x1dUup\xc5\xee\xf24\xf5z@\x1a\xcc\xda8/\xbf\xbf\xf6\x81\xc7g\xd5\xc1;\xff\xbeZ\x8d \xc1\x14ԋ\x81\xea\xf5\xb8\x9a\f\x15LH\xad\x9e\xafP\x0f\x98\xc4lp\x1d)\xfe\xf9@\xdf\xe4o\n\xc3SX\xc1\xf8^k\xceg\\mP\xff\xef?\xffj \xe4\xf0\x00?\xf8\x00\x7f\xbe\xf0\x80\x00\x84\x00\x01\x00p\x02\x02") diff --git a/testdata/fuzz/FuzzDecodeSample/seed-base_ip_slices b/testdata/fuzz/FuzzDecodeSample/seed-base_ip_slices new file mode 100644 index 0000000..0abd6e2 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeSample/seed-base_ip_slices @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x16gB\xc0\n\xdb\v\x13\xa1\x00\x00\x03\x00\x01\x00\x00\x03\x00\x14\x0f\x12&\xe0\x00\x00\x00\x05hʂK \x00\x00\x02;\x06\x05\xff\xff7\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=0 ref=2 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 slices=3 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=25 keyint_min=2 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=28 ip_ratio=1.40 aq=0\x00\x80\x00\x00\x05\xdce\x88\x84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uzz/FuzzDecodeSample/seed-high_cqm_custom b/testdata/fuzz/FuzzDecodeSample/seed-high_cqm_custom new file mode 100644 index 0000000..430a74c --- /dev/null +++ b/testdata/fuzz/FuzzDecodeSample/seed-high_cqm_custom @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x17gd\x00\n\xac\xd3\v\x13\xa1\x00\x00\x03\x00\x01\x00\x00\x03\x00\x14\x0f\x12%8\x00\x00\x00,h\xea\xe12\xce\x10F\x10s\xa3\x18\xc8\xe7\x10e\x14\x8c \xe7F1\x91\xce \xc9\x04\f\xe2Lfs\x9d\x98\xc2N\xe1\x00B\x84\x01\f \bK\x00\x00\x02}\x06\x05\xff\xffy\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=2 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=2 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=22 ip_ratio=1.40 pb_ratio=1.30 aq=0\x00\x80\x00\x00\x05\xdce\x88\x84\x01\xffv\xbf\x9fk\x97\xd2\xf3q\xf1\xd1S\x8f\xf9\xb2\x8b\x81\x96\xf2l\xf5\xd3\xd2\xcc\xebx*UN\xee\xd2r\x90ZR\xca\x18ŝ\xfe`\x02+geY\xe4\xd7\x00\xc9t\xc0\x196\x1c\xe3\x0e\xd9\xe0\xd1\xff,y9\xed\xea4\xba\x00\x99U\x13T]\x1e\x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?\xae\x7f\x87\xe1lk\r\xdc\xf0\xb0\x83,\x86\x1d\x88\xb6u\x9a_\xb0J\xef\xa5.\x9d\x00+T\x19p\xfdl\x97',\xa1\x7fm\xabM!Ev\xed\x96\x13\x90Om/\x1e\xb1\x7f\xd9\xd6$\xc8/\x8b@F\xeej\x81gY\x94-\x04\x8e82\xe3\xec\xb7\x1b\x9d\x05\x16\xf7\xeb\x04\xf4ױ;\xf6\x17(:\xbc\x1e\x00\xf2\xe6m\\j\xa1\xfc\xb5\xec\xea\f\x87\xd2:\xe1\x15\xe3Y\xa78\x81\xe3ZV\x96\xcaSkۀ\xb5\xabG\xeaJ\x04\xfd\x1f\x15\xa3\xd5\xf5\xf2Rn\xd9jDѼ\x9b\xd7]\x91\r\xbc\xed¯q\xe9\xffk\xaa\b\xf8\xb1\xa6\x12\xe4'C\xe7\ue104\xbb2\x8dP\x1b\x18kx#=\xa1\xdb\x7f\xb38\xb5\b\x89\u009a\xc4\xcbP\xfe\x1f\x1e\xf3w\xc0\xa8~\xacK=@Ëo\xd8g\x8f|\x85Ap\xaa\x9c\xfb\xf5gv\xfcp\xb6\xecfߵ\xe6V実\u07bf\x92\xa17\x9e\xf7\xf0\xdc\xe7\xdd\xd8\xfb\xea\xech\x9f\xee7\xe7tO\x818Q\xcf\x1c]\xc7\\\x1bT\x05u\xc6o`\xaf*\xc11\xbfRw!\xaeZ\xa0\xec\xb6\xe0\xee\x1cc\xea\xff\x17\xa7\xb2\x80\a\x95\a \x83\x87\xa7\xece\xdf\xed\x8a_=\xeb\xb5\x1b\xa1p\xaa)HlEԐ\xf2\xe9\")-\xbaz\",-\x9e\x8a\x06\x81[\x0es") diff --git a/testdata/fuzz/FuzzDecodeSample/seed-high_cqm_custom_cavlc b/testdata/fuzz/FuzzDecodeSample/seed-high_cqm_custom_cavlc new file mode 100644 index 0000000..96e4865 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeSample/seed-high_cqm_custom_cavlc @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x17gd\x00\n\xac\xd3\v\x13\xa1\x00\x00\x03\x00\x01\x00\x00\x03\x00\x14\x0f\x12%8\x00\x00\x00,h\xca\xe12\xce\x10F\x10s\xa3\x18\xc8\xe7\x10e\x14\x8c \xe7F1\x91\xce \xc9\x04\f\xe2Lfs\x9d\x98\xc2N\xe1\x00B\x84\x01\f \bK\x00\x00\x02}\x06\x05\xff\xffy\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=0 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=2 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=2 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=22 ip_ratio=1.40 pb_ratio=1.30 aq=0\x00\x80\x00\x00\x05\xdce\x88\x84\x01\xfd\x10\x01\x15\x83\x02\x10\xfc\x01\x1ba\x98@\x01\xb5\xa80B\x00\a\x85\xe9\xc5\xe5\x15\x84\xa0z&?\xfc\r\x93/\xcdHl\xce6\xbe\x7f\xf0g\x91<\x19\u0603S\xfa\x02\xfe\xe0\x80\xfd\x90\x91\xf20?sL)\xff\xd8\x1a6\xe9ED\xe0\x8b\x94\x9f\xdfZ\x87\xb0\xa3<\x8fN\xa0z\xbdt_\x1c\x0e\xe74\x10\x89\xea\xf5\x01\xf3\x18͇\x04\xa3\x0f\xef\x94\a\x8eb\xb7\x1c;\xc8\xff|\b\x00\x04\b\x00\x00@\xd8\x00`T \x00\x10\v\x03\xb4\x00\x04\x12\x80\x03v\x1b\x89\x12\xe2\x0f@q\xe4\xa9#\x00<5\xcfFD?\xe1\x00X\x98\x96?\x9c\x00\x95\x02\n\x94\xe0\x8d \x024k\x84\xa5V2_\x05\x15\x00 dg\xd6\x13d\x96`\x00 \f\x02L\x06\x7fs\x80-\xc56\xe2\x11\xa5\b\xa8\b\xda,\x02\u009f\xf3R\f\x8cP\x9aL\xff\xe3\x03\x80#1\x1cA.V\xa8\x03\x13\xc1\x9d\f\x13\x1f\xd0%7.\x0fc\x81\x9c\xf6\x82X=^\x050\xf5\x11d/\x89\r=^\xb0k\x90\xcd0?\x8f\xaf\xf7\xce\x10\xc4K\x12K\x10u\x02\xb8V\x89\xc4+\x87&z\xbd\xb4\x16Y\xb0\x14\x82\xa0\xf0\xad\xff\xce\bga\x12E\xa0\xea\xa0\xd3\x1c\x9f\x06\xd1\xd6\xf3\xe0\xa0\x02\xc8\x10\x00\x10\x02\x88*\f'5\xb0\x87ԕDZ!xT\x90?`\x93\x12\xa4\x8c\t\xd2\xff\xfea\xa8\x1fZ\x80Z\x8a#\xf7\xa6@\x0e\xb1@`\xea\x03\xdc!\xe1=Uǘ\x16IN\x1c\xc1\xb8h\xbdAn\xe9߾нdJ\x82\x9c\xf5U\xbf\xfd\b\xab\x88\xa8\x13e\x8a\xc3\xf9\xa9\r\x99\xc6\xd7\xce\xfe+\x88\x9e\x19ЃS\xf8_\xc9\x7f\xfb\xf3R\x1b3\x8d\xaf\x9d\xfc`w\a\xb1\xc0\xce{A)\x1e\xafl\x89\x17#\x02\xf74\x87?\xfa\xc1\xd3\x10\x8c\x82\x86\xcd\x19\xff}@x\xe4+qü\xaf\xf7˃\xd8\xe0g=\xa0\x94\x0fW\x81\xa9\xeeb\x8c\xf6\x1aA\xea\xf4\x80\x0f1\b\xd8p\xff\xbf\xbf\xf5\xc2\x18\x89r\xcd%\aP`A\x89a\x00\x02\a\x15VK#!\x8d\xa9\x83\f\xcdlF\x1fɀ\v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b5\xe2\xff\xf6\xa2\x19\x10W\x01y\xe0&\x06\x14\x8bk\xc2\x1d\xff\x8c\x04iP\xee\x00\x05\xc7\xf5\x81a\xe0q\x96m\x1d\xa8\xbf\xfd\xa8\x81\x8dƇ\x81y\x90\x04\xa0\xb8\"\xea\xb2,\xef\xfcQ\xc1\x03\bpy\xc8\x00\x10|a\xc7\xd3\xc0\xb5\xff\xec\xc0\x00,P\x01\xf8\xb9\x03\x81\x12K\x1dýw\xfe(\x0f\x180\xb5\a\x9c\x80\x00\b\x80t\x18\x14NˇW\xff\xb4`\x00 \x04(\x02t\v\xc8\x17\b\x12G\x88hO\xab\xbf\xf0 \x00\x10'\x00\x01\x02\x80\x00\x10\x05\x03\x01\x00@\x01J\x86Hh\xa0\x1cxژ\x88\xc1\x94\xb5\x00`ڛ\x00_\beXژ\x80\x00(?\f=j\x8d\xa9\xb3\xe3a\xbcmL\xa9\x1b\xb2\x01F\xd4\xd8\x00H\xa1E\xd6Cjb\x00\x04\x8a\x1c}d6\xa7\rC\xf6\x80q\xf0\xc0ODeZ\x80\x1d$\x19\bP\xde\\\xfay\xc0ݨ=\x87\nI?\x8a\xe8z\xbd\xf8\x06\xe8\x90eU\rə\xfd\xf7\x8a\x00\x02\x0f\x1e\x10\x00\b\r\x80\x00\x80P\x1e\x00p \x00\x10\x17\x00\x10\x00\xa0\x17\x02\x90\x12\x90k,\xe1Z8*\xfe\x0f\x82#\x89\xfdP\xe6\x00\xe8J`L0vmh\x1c\x15\xc3\xf8=\x18Ш\xbc\xa0\xa6\xcc\xc0s\xfb\xef\xfcC\xe3p8\x04\x00\xa0\xe4\x1e\xfe\x0e\x00@\x00\xa4@\x0e\x85\x16\x01F^\xc1\xb6\xa0\x80\x00\x90\x00\b>\x82\x81\x00\x88\x00\b\x12\x80\x00\x84\b\x00\b~\x01\xc0\x85:\xe6\x00Cd$1K\x94C°\x18\x1c\x00\x0f\x80\x06\x00\xfb\x98\x026M\x80\x00\x80\x18\x00\x13=\x80\v<\x9e\xe1\xff\xf0\xd6(\x00\b\x1en\xfc@\x00\x10\x06\x00\x01\x03\x98\x80\x00!\x80\x00\x02L\xf0p\x10\b\xc6\x0e\x02\x01\x18\x83\x80\x00\x80\xc8\x00\bC1\x83\x80\x00\x80\xc8\x00\bC1'\x80\x03\x80\x84>\xc3T\xde\xe5݁]\xbe$$B\x98\x00\b\x03\x80\x00\x81\xb0D`\x80i\x02\x04\x00\xf7\r@\x00\xe4\xf2\xc88\x81\x00=\xc3\xc0\x00\xe1\x18C\xa1\x96\x1a\x80\x01x\xb2Ȃ\x18k\x87\x80\x01r\xb0\x88\xe0\xb0\\{\xff\xffo\xcf\x01\x10\xfb\xe6\xbf\x1c\xa8\xd0\xdd\x7f\xc0\xf0ʀ0\b\xe2\xa1\b") diff --git a/testdata/fuzz/FuzzDecodeSample/seed-high_cqm_jvt_4x4 b/testdata/fuzz/FuzzDecodeSample/seed-high_cqm_jvt_4x4 new file mode 100644 index 0000000..765c858 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeSample/seed-high_cqm_jvt_4x4 @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x17gd\x00\n\xac\xd3\v\x13\xa1\x00\x00\x03\x00\x01\x00\x00\x03\x00\x14\x0f\x12%8\x00\x00\x00\x06h\xea\xec\xb1\x00\xb0\x00\x00\x02}\x06\x05\xff\xffy\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=1 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=2 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 pb_ratio=1.30 aq=0\x00\x80\x00\x00\x05\xdce\x88\x84\x01\xff\xadn\xda\xfb\xb4\xf00]\xdc\xd4nL2י\x81\x93\xb1F\xa8\xa6\xe8\x0en\x13\xb2\x8b\xb8\x7f<\xc8\xeb\xc6ˈ\xdf1\xe5h\x11\xb8J\xe09\xdd\xdb\xd5kJ\x8b\x12GNI\xe1\xca\xfc\xea\x85P\xba\x1e\x04LC䬸w)\xaa\xf6\x95e\x16l\xb4\xf5s\xe9x\xa3\xa8\a\xcf }\x94\xa3b\xdb\xfd\xdd_\x16\xf7\xfd\xc6|\xf9\b,\x87+\x91]VW\x18\xa8\x9d~H\xae\x02\x05}\xf9yʭP\x11\x99\xe7\xb7c\xa6V\xdaR]-\x06́\xf09\xcc0\xe6pu\xbb;\x0e\xa3>\xcaq^#\x10\x90\x11\x16\x85\x1aׁ\x05\xbe\x8d-\xf0\x83K\xae<\a\xbf\xc4\xc8Rv\x93\xf2\a\x1fx\xd6D\a4\xa7a0\x0f\x97\xf2\x16pr֪\x86\xad\x16\x89E\xd1\xd5\x06\x99(\x19\"~\xd7\xf0?\xd0\xfb\xe8\xa5\x0f\xbe\x1d\x14z\xbd\xc7?%F\x06\x95\xf8ɘ\xc8\xccRX\x93\xa0bp=-\x80\x90}ڣ\xc0\x11\xa7PV\x04\x95\bh\xd0\xf1@\xd5\xe1\x11(\x1b\r\x88\xc3~\xb7\xe82\x9e\xbeJ\xa8Sa\xbe\x92\xed\xcf\x1bJ'\xa8A\xdf\xdc.\x00|\x1a*0MdD\x9c\xce\xeb0\xf7ytM\xa0F\xdc~\u05cb\x9d\xab\xb3?\t\x03\xc3L$d+\xb9\xa9\x01\xf9\xbb\xfd\x8e\xe4\x13\x10\xf1'\xb9\x1b\xbf\x97\xe0R\xe6\xbaV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\x91\xf2\xe9 \xaf\x8f\x104\x10\x98Û\x16Cԅ\"\x1a\xdceh<8\f\xaf\xe6\xf7/\xc15\xb7Y\xe1\x93`\xf3\rP\xb92[)X\x81\x10\xf6\x85}W\xb7@!\xdc\xef\xe5z\xcd?\x8c\xc3\x11\xf6\xe6\xa6V\x8cN\n\xa1\x9c\xaf뮂8\xa1\xed1\x8c\x8f\xe5;\xedQ\xd9.2N\x17\x94@z\xae\xc4E\xc3\xda\xc2A\xbc\x8c\x1b\xc8\x01\xd7\x1dk\xac\xde3\x9bk`v2y6\a\xbe\x8c\xf6\x17\x11\x03M\x82\xfcQ\x06o\xaf\x14H\xc1(\xe6%\x82_\xea2S[R\xba\xe1/\x04\xe6\\H\xb1;\xb4\xe2LEM\xf4\x94vL˾\xef\xf0\xaa\x9b\x13ɏ\xa1\x03&r\x06\a/\xc1\xf1PhP\x93\xc4fAuY\xb7\xdcC\xd5\xfe[Tl\xdb\xfa\xb3\x12S3\xac\xb1łE*l\xdc\x16x\xe5\xae\xd3̿[\xb4\xffy\t\xe1\xf1.\x10\f;\x9a\x8e<\xf5\xa7^\xc6\x06H\b`G\xfa\xe0\x0e%'\xea`hMz\xc5\b5Dk\xfc}?\xc5-\t\u07b9J7\xf7\x05\x0f\x15\x8cm\xb7q\x01kq\x06Z\x18\x10B羅^t^g\xe0\xa52\xcb_\xf7\xce?\x05\x8c3R* \x86\xf8\xb9C.\xba0T\x82@\x92?9\x94X\xdf\xf5،\x98/\x1c\xa4\xfa\xa2ΥvL\xe0\xa4") diff --git a/testdata/fuzz/FuzzDecodeSample/seed-high_cqm_jvt_cabac b/testdata/fuzz/FuzzDecodeSample/seed-high_cqm_jvt_cabac new file mode 100644 index 0000000..b6ed9cf --- /dev/null +++ b/testdata/fuzz/FuzzDecodeSample/seed-high_cqm_jvt_cabac @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x17gd\x00\n\xac\xd3\v\x13\xa1\x00\x00\x03\x00\x01\x00\x00\x03\x00\x14\x0f\x12%8\x00\x00\x00\x06h\xea\xec\xb3\x00,\x00\x00\x02}\x06\x05\xff\xffy\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=1 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=2 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 pb_ratio=1.30 aq=0\x00\x80\x00\x00\x05\xdce\x88\x84\x01\xffѷm}\xdax\x18.\xeej7&\x19k\xcc\xc0\xc9أTSt\a7\t\xd9E\xdc?\x9edu\xe3e\xc4o\x98\xf2\xb4\b\xdc%p\x1c\xee\xed굥E\x89#\xa7$\xf0\xe5~uB\xa8]\x0f\x02&!\xf2V\\;\x94\xd5{J\xb2\x8b6Zz\xb9\xf4\xbcQ\xd4\x03\xe7\x90>\xcaQ\xb1m\xfe\uebcb{\xfe\xe3>|\x84\x16C\x95Ȯ\xab+\x8cTN\xbf$W\x01\x02\xbe\xfc\xbc\xe5V\xa8\b\xcc\xf3۱\xd3+m).\x96\x83f\xc0\xf8\x1c\xe6\x18s8:ݝ\x87Q\x9fe8\xaf\x11\x88H\b\x8bB\x8dk\xc0\x82\xdfF\x96\xf8b2\xeb\x8f\x01\xef\xf12\x14\x9d\xa4\xfc\x81\xc7\xde5\x91\x01\xcd)\xd8L\x03\xe5\xfc\x85\x9c\x1c\xb5\xaa\xa1\xabE\xa2Q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\x83\xecD\x94\xcc\xea\xf2\x11\xc0\x91J\x9b7\x05\x9e9k\xb4\xf3/\xd6\xed?\xdeBx|K\x84\x03\x0e棏=iױ\x81\x92\x02\x18\x11\xfe\xb8\x03\x89I\xfa\x98\x1a\x13^\xb1B\n\xb7\xe9\xbf\x1fOϛ\x98\x7fj\xa2s\x95\x9bOf'{1\xad\xda\xee\xa2VH\x1f\x99$t\xc1+\xb3\xb3\x9fZ\xf2\xcae\x96\xbf\xef\x9c~\v\x18f\xa4TA\r\xf1r\x86]t`\xa9\x04\x81$~s(\xb1\xbf\xeb\xb1\x190^9I\xf5E\x9dJ\xec\x99\xc1I\x10G\xe5\xe0") diff --git a/testdata/fuzz/FuzzDecodeSample/seed-high_cqm_jvt_cavlc b/testdata/fuzz/FuzzDecodeSample/seed-high_cqm_jvt_cavlc new file mode 100644 index 0000000..57ab223 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeSample/seed-high_cqm_jvt_cavlc @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x17gd\x00\n\xac\xd3\v\x13\xa1\x00\x00\x03\x00\x01\x00\x00\x03\x00\x14\x0f\x12%8\x00\x00\x00\x06h\xca\xec\xb3\x00,\x00\x00\x02}\x06\x05\xff\xffy\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=0 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=1 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=2 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 pb_ratio=1.30 aq=0\x00\x80\x00\x00\x05\xdce\x88\x84\x01\xf8c\x00\a\x80@\x00\xc6c\n\x06\x1d:i\xf0\x04H@\x00@t\x04)\x827j-\x00#%\xa0\x04\xc0\x01k\xccy\t\n\x80+_\xfe\x1d\x00\b\xc8\xe8\x00Fu\xd4d\x8cT\xaa\x05S\xff۔\xcd\x10\xa3\xa0\x0e\xd7\xff\x87@\x04į\x182\x18P\xaa\xaf\x0e\x80\t\x80x\xc6F\xb0\xc0̿|\x94т!\xc5\v\xaa\xf4\xaf\x186!\xc0%W\xa4\x1c\x88\x94\x18\x1d\xb7\xef\x92\fdk\x18\x11W\xef\x81\x00\x00\x81\xd0\x00\b2\x00\x00\x80P\x11\b\x00\x04\x06\xc0\x1c\xb0\x00\x10\x98\x00'ؐ\x82\xe0C\u05cb\xa1\x03\xc3\\\xef\x83\xf2\a+\x7f\xfe\x8e\x16\x84%\\#H\x00\xeb\xc5\vb\x15\x1e\x00\x10\r*u\xbdx\x10\x82?\xffx\xe2\xb3\x0eȍ(EDF\xdbE\xa9\xf8\x05,\x89\x8a\x96\xf5@\xc1\xc0BF`\xe0\xea\xd5\x03\x16f\x88Q\xd0\x1d\xe0G\x7f\xa9t`\x98\xa7\x00\xa0\x8d^\x06\xbd\x91\x84\xec(\r=^\xb3\xe8\x95\x00\xd4\n\x9f\xef\x9d\"\xec㞃\xa8\x1b\xdeH&` \xf3\xd5\xedJ\xea\f\x86\x81\xe8\x04'i\xa18\x9e\x83\xaa\x8dF\\\x04\xa0Fy\xf0P\x00\x10\x02\xc6\b\x00\f\x00\xa1G\xc6V\xc85Pz/\x1e\f\xa6\x16\xbc\xfaBԿ\xfe\xe5\xf0\x7f\x83\x90\xdf\xfe\xe0\x90\xca\b:[\x00\x87\x13)\x06\xc1Jb\x87\x030\xa7\xe3\xb7\x1b\xf7\xd8_%\x18\x9d5\xfd\xf4\"\xb1\x15\x02fR\xeb\x03\xf7-&*\xfdp'\xffvS8\x85\x1d\x00\xab\x03?\xfd\xff-&*\xf7\xaa\x06\x0e\x97F\t\x8ap\n3W\xb1S\xa4<\x87\x18\xeb\xfe\xb3ҕ`\x1c\x00\x01\x00_\xfd\xea\xc74\xed\x80\x12P\x00\x10\r\xfe\xfa\x97F\t\x8ap\n\x11\xab\xc0\xefd\xc4S\x0e#W\xa4\x1c\x88\x940*\xdf\xdf\xfa\xe8D\xa4p\xa2\x90u\x06\x00@1\xec \x00.\x01ê\xba\x18ƹ\x98\xfa j\a0[\x10\x98ѵ>\xc9hs6\x90u\xb3\xcd1\r\xa9\x86\xb5\xc6\x18N\a\xa0\x05\x18\xa1\xe7\xc4@\xb9q\xf1\xa3\x05T]\x9d\x14\x84#\x88\xa8;P\x87_\x00\f)\x9a!G@*\xc0\xef\xffA\xa0\x00X\x00\x04\b\x19\x7f-&*\xf7\xba\x06܉\xa4P\xf0t\x81\x1d\xfe\trB\x8e|rة\xd2\x1eC\x8cu\xff;\x11\xc38\x83\x10uQ\xdc4\xa3x\xc9\xffuK\xa3\x04\xc58\x05\x19\xab՛\r\x98\xa0b\xf5zAȉC\x02\xad\xfd\xff\xb4sMc\x04C\x7f\xbe\x04\x80\x80\x18\x03BC\x00\x01\x010\x00\x10\x04\x8ev\xd1\x01\xd5\xcd\xe88@\xee\ve\xa1\xea\xd0\xce\x16$1&F\x94\xe4x\x90\xdc\x1e\xceY\xb2@a(i\xf6\x97\x92 ≱\xa4\xbf\xfep\x1a\x82\xa5\xe9J\x1dJ\x11Q\x11\xe1\xd8\xd3\xf0*\nL\xb1\xf7\xc0\xdb\xfd\xfc\x00A\x13H\xa1\xe0\xe9\aw\xfa\xb5a3\x94\x0ef\xaf|\x8e\x92P\xc1R\xfe\xff\xd0\xc3lLQN\xd5\xe89\\\x1b\x10-\x03\xb7\xce\x06.\xe4\xfc\x95Q\xdcj\x04\xa0\xdb\xfd\xb0\x80\x012\x10\x00\t\x81T l\xb8\x14|\xc0\xe8`\xc9x(\xf9\x01۟R%\xc0\xdf\xfe\xde?h\xd5\x02\x7f\xf9\xbbdR\xba\x1d\x11\xca\xed}\xaf\xcck(\xcf\xffj\xf9\\b[G\x7f\xfb\x18\xf8\x06Cm\x87\x9c(\"\x8e:\v\xff*\xf0Үp\xa52\xcc0G\x7f\xe1\xca\x02`\x00\x11\x05\x1epR\x02Lwq\x97\xff\xb5j@\xc0\x1c\v̉\x06\x12\xb8\xe0\x87\x7f\xe28B\x00\x80\x8e\x05\xa3\x88Ņ\x00U\xff\xec\xc2\xc0\x1b\x17!H̀t\x8c\xbc[\b\xc6P\xf3\x90\b<\xc26\x1a\x02W\xff\xb1\xe0x\n\xa2\xe4\x1a\x04\xe1\xb8\x13\xf3\xe5\xe0@\x00 \x8a\x00\x02\n\x80\x00 n\x00\xb0@\x04\x00\x04\x03DYX\xd8\x00\xc0\xb2\xa6Q\x02E`\x000ڛ\x17\x10R\x8d\xa9\x88\x02\xe8!٣jqE\x04\xe3jd\xcbH\x00\xc6\xd4\xd8\x14\xc6-\xd0ژ\x81Lc\xdd\r\xa9\xc3P\xff\x87\x1f\x19\"2\xc2\xe0\nL\x88\xc2弨\b2\xa6\x97C\x11Mx%\xed^\xf9\x01\xa8\x8d\xa1\xc0w\xbf\xbf\xf7\xc5\x00\x01\ro\b\x00\x04\f\xc0\x00@\x98\x01\xa0\x00h \x00\x10-\x00\x02\x00\x01@\x05\xc1$Ы\x98n\f+|\x1e\x92d\xd4D\x00\x05%\x00\x01\x00\x97\xf7\x98\xf1\xc0\xcc=\a\x8f\x9d\xecg\xb0\r\xfd\xdf\x7f\xe2\x1f\r\xe0r\x00\x02\x00`\x00 \x83\xe0\xe1\x00\x05\"\x00\xba`06\xb1\f\x82\x00\x03\x00\x00!\x8e\x02\x80@ \x80\x00\x81\b\x00\bH\x80\x00\x88\xb0\x1e1\xae`\b\xc6\x17\xf3\xb0\xe3(x\x1c\x01\x02\x03\xee`0\xa0\xc0ժ\x02\xc0\xf2{\x87\xff\xc1^(\x00\b;q\x00\x00@P\x00\x04\x19\xe2\x00\x00\x88\xc0\x00\t\xb8\xc1\xd0\x011\x83\xa0\x02b\x0e\x00\x04\xc0\x00A)\x8c\x1c\x00\t\x80\x00\x82S\x12x\x008\bC\xec5\xbe-\xf0\x00\xe1\xe0\x1cR\x82#\x00\n\x00\x02\x04A\x04\xa1\x80\x0f&@\ap\xb0\x03\xe2T\x80\x0e\xe0\xe0\x06\xc0\x92\x05p\xb0\aĢ\x05pp\x06\u0088c\x82\xc0q\xef\x81\xfc\xf3\xf3\xc3\xe0J\xff\x17А\xf1\xaf\x06\x02:\x00\x90\x04\x05\f\b\x04\x14PO\x9eUp\xe0\xee\vʮ\x01=3\xd8\x11\x85\xf2\x8e?C~{\xed\x00=\xb6\xc7\xe5\x95\t\x00\x9d\x02\b\x03\x9c\x7f\x8c\xf1&\xa5\x85\xf2r\xa1\x8f\xe8\x0e\xe9X\x00\x04\xe5\x10\x8cc\x0f\x8e\x83\x9f<\x00\x0e\xdf\x12\x127\b\"\xc7\x04\x00\x05A\x92Xo\x9f\x1b\xf9\xd6\x1a\xc0\x85S\x91(\xc5\xcf!\x0f\xc6\v\x85\a`e\xfd\xe1\xf7\xba\xa1\x02F(@\x01\x00;\xc3\x03\xf3a\x82\x81\xa9[0~(o8ι\f\x86\xbey\x7f\xfd\xa8\x83\x92\xc0\x00A\x0f\xf0\x00\xa5\xe6<ć@\x1d\xe0\x1d\xff\xee%9@f\x1a\x05\x85/\xfe\x82\x1a\xd0\xd2\xc0\xc9\n\xcf\xf7\xc1\x00\x01\xf0\b\x00\x05\x80\xa0@\x00P\x15h\xf1\x98\xd8\xd4\xc4\a\x94K\x02") diff --git a/testdata/fuzz/FuzzDecodeSample/seed-high_intra_8x8_cabac b/testdata/fuzz/FuzzDecodeSample/seed-high_intra_8x8_cabac new file mode 100644 index 0000000..b60e7f7 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeSample/seed-high_intra_8x8_cabac @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x14gd\x10\n\xac\xb8X\x9d\b\x00\x00\x03\x00\b\x00\x00\x03\x00\xa0 \x00\x00\x00\x05h\xee2Ȱ\x00\x00\x021\x06\x05\xff\xff-\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=1 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 aq=0\x00\x80\x00\x00\x05\xdce\x88\x84?ѷmbx\xad@\x17wT\xae\x10OS\xc8?\t\xff\x8c\xcd6\xdaK\f0\xf0\xe4)oD\"\x1c\v9s\x95\x94\xf7\x17\xf6\xee\x15V\x96\n\xe6\xeey\x04fE\xad9\xe9۬\xf6IF\xd7xZE\xb6R\n\xbd\x9d\xebM\x04X\xa9_o}\x1e\xa9Z\xe1\v2\xe2\xdaԒ/y*\xf7\x9e\xfe(VC\\V\x17?\x9c\xb6\tb\x8c\xe4\xb0 ^h&\x94\xd4j\x8fl/\t:\xf2\x82a\xc4\xeb\"i\xa6\x8e\xf5,u0\xad@㋇r3D\x05\x0f/\xc2p\x86\xb8\x8a\xc7\x1a{\x8eZRL\x9f\x85Z\x7f\x04\x8e\xed\xb9@1\xd2B\xd9<\x92\xe9\xd6\b\xf2\xe5f\x14\x8ao\xe3e%\x9f\xaf\xd7\xeb\x0etj{\x8b\x186\xa0\xac\xb3\x19\x0fʻ]\x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\x94\xbb\xb3\xc4sQ@z\xe3Nra\xae5\xd7\xea\x9bK\xf2\x94\xaa[\x17H#\x8f6rx\x85S2:\x02COs\xc0\x7f;s\xb0ڧ\t\\\x98^\xe5\xdd\b\xab\b}c\xe3\xed\x13i\x90Z\xb8OtF4<\x15\xaf\xbf\xbb\xe7\a\x95\xff\xb8\vD\x04\xfc.\x8d\xfa\xc6\xfeM\xe2\xe1\xeba}&p\x84H[>\xef\xbb\xfc*\x1e}\x0e\xd7'\xffy\x84X:FӰ\x9a\xf2%\xdf\\\xc4k\xc8\x16\xc9\x15\x98\x98\x81\xe7݁5\xd1\xced\x98\xae$S\xfd\x18\x04\xf0\xc1\xf1\x15\xe6%\xabKZ\x00#\x1d\xf4GP\x1fW\x05%\x17\x8c\x84\xa05\x94\n\r\x80]\xcca\x9a|\xc8\xc8$9z\xd5\x00\x00\x00\x14gd\x10\n\xac\xb8X\x9d\b\x00\x00\x03\x00\b\x00\x00\x03\x00\xa0 \x00\x00\x00\x05h\xee2Ȱ") diff --git a/testdata/fuzz/FuzzDecodeSample/seed-high_intra_8x8_cavlc b/testdata/fuzz/FuzzDecodeSample/seed-high_intra_8x8_cavlc new file mode 100644 index 0000000..a5b5f65 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeSample/seed-high_intra_8x8_cavlc @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x14gd\x10\n\xac\xb8X\x9d\b\x00\x00\x03\x00\b\x00\x00\x03\x00\xa0 \x00\x00\x00\x05h\xce2Ȱ\x00\x00\x021\x06\x05\xff\xff-\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=1 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 aq=0\x00\x80\x00\x00\x05\xdce\x88\x84?\xa2\x11\x15p`B\xfc\x04(\xc8@\x00-j\x05\x1aP\x00J\x17\xa7\x1f\x94\xea_\x1e\xb1_\xfe\vY~jCfq-s\xb7Dq\x13\xc1\x8b\xc8e/\x04\xe5/\xff\x17\xf3\xb0\x91\xf20\xf9\x89r\xbf\xfd\xc06\xe9E\xe9\xa34\xe9\xfb\xebQ\xa4\x18\"\x9a\x91\xba=^\xb7\x13A\x87C\x12+'\xab\xd4\x03\xe61\x1b\x1c\x02\xae?\xbeP\x0f\x14\xc5Np\b\x84\xff|\b\x00\x04\x00\x00\x03\x00@\x00\b&\x10\x00\x15\x17\xc0\x03\x00\x03v7\x12%\n'\x850\x95$\xc0<5\xcf\x06Hۈ\x01\xc9[\xfb\x98\x00.\x82:\xa4mL\x00\x8d6\x85\t3\x1d\xf0_\x01\x84#\xf4\xec\x9bR\xd8\x00\x82I\x9f\xff\xb4\xe0\nr\x9fȍ(EDF\xdb\x00\xb0\xa7\xfc\xcaA\x90\x85\x1a\xd7;\xb4\x80\xe0\b\xa6A\x90r+T\x05\x85\xce.!\x94\x9e\x82\xdaGZ\x8d \xc3!i\x13\xe3\xd5\xe0S\x0fS\x14\xc5C\x82\x9e\xafX5\xc8f\x90>\x9b\x7f\xdf8C3\x90\xa7\"\x0e\xa0W\v\xd3!\x88\x80\x8b=^\xe7\x05\x96h\x15\x8e\x87\xd1\x19\xc1\f\xe8B\x9b\xa0\xea\xa0\xd3\x1d\xae\x1aʯ>\x03\x00f\b\t\xc4$%\xb3\xb2\a\xd5>\x94\xb2G\x81\xb99\xb0I\x91\x95\x10\x16\xaf\xff\xcb5\x0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\x80\x1f.\x03\x89\x98=6\x00\xe9x\x1cL\x81\xec\"Ӕ#j_\xff0\xcaoX\x8f\xa1?\xfc\x8e\x9e1b\xfa\xe8\xe0\xf1\v\x97\xd7i\x8ft\xbf\x94}\x89S\xff\xdaC\xf9'\xc5\x1bfV\xff\xf61\xf0\x18@f@\xf3\xe1|3c\x82\xcf/\xfflĠ\xc9\x00\xbc\xe8,3\x92\xb9B;\xff\x18\x85P7\x00\x01\xe3\xfa\xc0\xbe\x03\t\x84\xafԿ\xfd\xab\x04\x98S\xc0\xbc\xc8\t\x81\xe1\xado\bw\xfe-\x84g\x14<\xe4\x00\x8b\\\xc6\xc2G\xaf\xfff\x00\x15\x01h\xb9\a!\x1c7\v\xb9\xf2\xf1G\b\x18\xea\x1er\x00\x04\x17\x18a\xb4\xd0z\xff\xf6<\x00\n8\x01\xf8\xb9\x03\x84\n\x87\x19\xa3;w\xfe\x04\x00\x02\x00\xa0\x00\x80\x120\x11\x00\f\x99\x92\x1e\xe0)\xa3jb#\x06G\xa0\x1c6\xa6\xc0\x15\xc4\x12\xa4mL@\x00\x14\x17\x8e\x19i\x8d\xa9\xb3\xe6\x81(ڙX\xd7 Q\xb56\x00\x05\x94Rn\x06\xd4\xc4\x00\x02E\x1c\xbb\xa1\xb58j\x1f\xf0\xf8`=5\xc0\x0eI\x06b\x14ml\xef\xe2\x01\v\xbfj\x1ac\x81\x18\xf5\x84\xf0\xf5{\xe4\x00\a\x88\xc5u4?o\xef\xfd\xf1@\x00@\xf3\xc2\x00\x03\xe0\b4\x18\b\x00\x0e\x83\x02\x87@\xa4\x10\xc84\xad\x85 s\xaf\xe0\xf8\x11\x9c\xce\xda\x19\x80\x12*@\xf0\xc1ٵÅ \xfe\x0f\x064|\xbd\xc5l\xc1\x9f\xdd\xf7\xfe!\xf0\xde\a\b\x1cR\x0f\x83\x80\x10\x03\x91\x00:H\xe0\x06\t\xb8\x1bj\b\b\x00\b\x12\x98\n\n\x00\x02\x00\xa0\x00 N\x00\x02\t@r\x18\x970\x02\x1b\" N\xf3\x909\xd8\x18\x1c\x00\t\x80\xc1\xf70\x04l\xbc\x00\xc0%\x7f\x02O\x11\x8a\xfbp\xff\xf8+\xc5\x00\x01\x01n\f\x00\x04\x80\x00\xf1\x00\x00AP\x00\x04I`\xe2\x00\x98\xc1\xc4\x011\a\x00\x01\x000\x00\x100c\a\x00\x01\x000\x00\x100b#\x17\xec\x00\x1c\x04!\xf6\x1a\xf8\x93\xbep\xfe$\x91\x02@\x00\xa8\x00\x18\f\x84\a\x10\x808\x10\x00\x04<\xc0\xe4\x01\xc0\xb0\x00 D\x90W\x12\x80\f\xf6YD+\x85\x80\r\x85\x10\x80`\xb8\xc0;\xff\xff\xcf\xf8\x11?\xa2\xb7\x96\xf9\x11ի\xfc\x18\"@\a!\x84\t\fA \xbc\x8dpO\xb1\xe4\xec\x05\x05\x11\xfe\f\v߉\x15o2\xa5\xfcq\xfa\x1b\xef\xbe\xd0\xf6{ߞH\xc0炀\xd9\xfcg\xbf\xa9e\xf2\xd8\xed\r\"\x85\xcb\x0e|\xe3\xf0\x1c\xa2\x80\x84\x7f\x8e\x82\x1f<\x01\xf5\xe2I\x1b\x859\x04\t\xba\x86\xec\xd2h\xfb9ޤn@u\x9c\x81\x10\xcd/\xb5\b~0\\(;\x19\xcf\xc3\xef\xfbi\t%\x84@j0~\x04\xcd.:\xe4%\x8bu0~\x17\x9a\xf0\xf7:\xe0Ĺ\x01\xff\xf6\x00\x00\x00\x14gd\x10\n\xac\xb8X\x9d\b\x00\x00\x03\x00\b\x00\x00\x03\x00\xa0 \x00\x00\x00\x05h\xce2Ȱ") diff --git a/testdata/fuzz/FuzzDecodeSample/seed-high_ip_8x8_cabac b/testdata/fuzz/FuzzDecodeSample/seed-high_ip_8x8_cabac new file mode 100644 index 0000000..8605c62 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeSample/seed-high_ip_8x8_cabac @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x17gd\x00\n\xac\xb6\x16'B\x00\x00\x03\x00\x02\x00\x00\x03\x00(\x1e$M\xc0\x00\x00\x00\x05hꌲ,\x00\x00\x022\x06\x05\xff\xff.\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 aq=0\x00\x80\x00\x00\x05\xdce\x88\x84?ѷmbx\xad@\x17wT\xae\x10OS\xc8?\t\xff\x8c\xcd6\xdaK\f0\xf0\xe4)oD\"\x1c\v9s\x95\x94\xf7\x17\xf6\xee\x15V\x96\n\xe6\xeey\x04fE\xad9\xe9۬\xf6IF\xd7xZE\xb6R\n\xbd\x9d\xebM\x04X\xa9_o}\x1e\xa9Z\xe1\v2\xe2\xdaԒ/y*\xf7\x9e\xfe(VC\\V\x17?\x9c\xb6\tb\x8c\xe4\xb0 ^h&\x94\xd4j\x8fl/\t:\xf2\x82a\xc4\xeb\"i\xa6\x8e\xf5,u0\xad@㋇r3D\x05\x0f/\xc2p\x86\xb8\x8a\xc7\x1a{\x8eZRL\x9f\x85Z\x7f\x04\x8e\xed\xb9@1\xd2B\xd9<\x92\xe9\xd6\b\xf2\xe5f\x14\x8ao\xe3e%\x9f\xaf\xd7\xeb\x0etj{\x8b\x186\xa0\xac\xb3\x19\x0fʻ]\x81 ,\xf2\x8f\xeb\xb6\x05\x0fJ\f>\xf8\xec P\x02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\xf2\x94\xaa[\x17H#\x8f6rx\x85S2:\x02COs\xc0\x7f;s\xb0ڧ\t\\\x98^\xe5\xdd\b\xab\b}c\xe3\xed\x13i\x90Z\xb8OtF4<\x15\xaf\xbf\xbb\xe7\a\x95\xff\xb8\vD\x04\xfc.\x8d\xfa\xc6\xfeM\xe2\xe1\xeba}&p\x84H[>\xef\xbb\xfc*\x1e}\x0e\xd7'\xffy\x84X:FӰ\x9a\xf2%\xdf\\\xc4k\xc8\x16\xc9\x15\x98\x98\x81\xe7݁5\xd1\xced\x98\xae$S\xfd\x18\x04\xf0\xc1\xf1\x15\xe6%\xabKZ\x00#\x1d\xf4GP\x1fW\x05%\x17\x8c\x84\xa05\x94\n\r\x80]\xcca\x9a|\xc8\xc8$9z\xd5") diff --git a/testdata/fuzz/FuzzDecodeSample/seed-high_ip_8x8_cavlc b/testdata/fuzz/FuzzDecodeSample/seed-high_ip_8x8_cavlc new file mode 100644 index 0000000..9e4ac59 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeSample/seed-high_ip_8x8_cavlc @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x17gd\x00\n\xac\xb6\x16'B\x00\x00\x03\x00\x02\x00\x00\x03\x00(\x1e$M\xc0\x00\x00\x00\x05hʌ\xb2,\x00\x00\x022\x06\x05\xff\xff.\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=0 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 aq=0\x00\x80\x00\x00\x05\xdce\x88\x84?\xa2\x11\x15p`B\xfc\x04(\xc8@\x00-j\x05\x1aP\x00J\x17\xa7\x1f\x94\xea_\x1e\xb1_\xfe\vY~jCfq-s\xb7Dq\x13\xc1\x8b\xc8e/\x04\xe5/\xff\x17\xf3\xb0\x91\xf20\xf9\x89r\xbf\xfd\xc06\xe9E\xe9\xa34\xe9\xfb\xebQ\xa4\x18\"\x9a\x91\xba=^\xb7\x13A\x87C\x12+'\xab\xd4\x03\xe61\x1b\x1c\x02\xae?\xbeP\x0f\x14\xc5Np\b\x84\xff|\b\x00\x04\x00\x00\x03\x00@\x00\b&\x10\x00\x15\x17\xc0\x03\x00\x03v7\x12%\n'\x850\x95$\xc0<5\xcf\x06Hۈ\x01\xc9[\xfb\x98\x00.\x82:\xa4mL\x00\x8d6\x85\t3\x1d\xf0_\x01\x84#\xf4\xec\x9bR\xd8\x00\x82I\x9f\xff\xb4\xe0\nr\x9fȍ(EDF\xdb\x00\xb0\xa7\xfc\xcaA\x90\x85\x1a\xd7;\xb4\x80\xe0\b\xa6A\x90r+T\x05\x85\xce.!\x94\x9e\x82\xdaGZ\x8d \xc3!i\x13\xe3\xd5\xe0S\x0fS\x14\xc5C\x82\x9e\xafX5\xc8f\x90>\x9b\x7f\xdf8C3\x90\xa7\"\x0e\xa0W\v\xd3!\x88\x80\x8b=^\xe7\x05\x96h\x15\x8e\x87\xd1\x19\xc1\f\xe8B\x9b\xa0\xea\xa0\xd3\x1d\xae\x1aʯ>\x03\x00f\b\t\xc4$%\xb3\xb2\a\xd5>\x94\xb2G\x81\xb99\xb0I\x91\x95\x10\x16\xaf\xff\xcb5\x0f\xad\xc3\xc4#\xffܙ\x002\xce\x04\x11\x00{\x84\x1e2\x9b0V\x1a!\f1\x83q\x91\xb6\al'\xef\xb4/Q\x12\xa1\xc6OD\xbf\xfd\b\xacED\x9b \xd6\b\x1f\xc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xff\xdaC\xf9'\xc5\x1bfV\xff\xf61\xf0\x18@f@\xf3\xe1|3c\x82\xcf/\xfflĠ\xc9\x00\xbc\xe8,3\x92\xb9B;\xff\x18\x85P7\x00\x01\xe3\xfa\xc0\xbe\x03\t\x84\xafԿ\xfd\xab\x04\x98S\xc0\xbc\xc8\t\x81\xe1\xado\bw\xfe-\x84g\x14<\xe4\x00\x8b\\\xc6\xc2G\xaf\xfff\x00\x15\x01h\xb9\a!\x1c7\v\xb9\xf2\xf1G\b\x18\xea\x1er\x00\x04\x17\x18a\xb4\xd0z\xff\xf6<\x00\n8\x01\xf8\xb9\x03\x84\n\x87\x19\xa3;w\xfe\x04\x00\x02\x00\xa0\x00\x80\x120\x11\x00\f\x99\x92\x1e\xe0)\xa3jb#\x06G\xa0\x1c6\xa6\xc0\x15\xc4\x12\xa4mL@\x00\x14\x17\x8e\x19i\x8d\xa9\xb3\xe6\x81(ڙX\xd7 Q\xb56\x00\x05\x94Rn\x06\xd4\xc4\x00\x02E\x1c\xbb\xa1\xb58j\x1f\xf0\xf8`=5\xc0\x0eI\x06b\x14ml\xef\xe2\x01\v\xbfj\x1ac\x81\x18\xf5\x84\xf0\xf5{\xe4\x00\a\x88\xc5u4?o\xef\xfd\xf1@\x00@\xf3\xc2\x00\x03\xe0\b4\x18\b\x00\x0e\x83\x02\x87@\xa4\x10\xc84\xad\x85 s\xaf\xe0\xf8\x11\x9c\xce\xda\x19\x80\x12*@\xf0\xc1ٵÅ \xfe\x0f\x064|\xbd\xc5l\xc1\x9f\xdd\xf7\xfe!\xf0\xde\a\b\x1cR\x0f\x83\x80\x10\x03\x91\x00:H\xe0\x06\t\xb8\x1bj\b\b\x00\b\x12\x98\n\n\x00\x02\x00\xa0\x00 N\x00\x02\t@r\x18\x970\x02\x1b\" N\xf3\x909\xd8\x18\x1c\x00\t\x80\xc1\xf70\x04l\xbc\x00\xc0%\x7f\x02O\x11\x8a\xfbp\xff\xf8+\xc5\x00\x01\x01n\f\x00\x04\x80\x00\xf1\x00\x00AP\x00\x04I`\xe2\x00\x98\xc1\xc4\x011\a\x00\x01\x000\x00\x100c\a\x00\x01\x000\x00\x100b#\x17\xec\x00\x1c\x04!\xf6\x1a\xf8\x93\xbep\xfe$\x91\x02@\x00\xa8\x00\x18\f\x84\a\x10\x808\x10\x00\x04<\xc0\xe4\x01\xc0\xb0\x00 D\x90W\x12\x80\f\xf6YD+\x85\x80\r\x85\x10\x80`\xb8\xc0;\xff\xff\xcf\xf8\x11?\xa2\xb7\x96\xf9\x11ի\xfc\x18\"@\a!\x84\t\fA \xbc\x8dpO\xb1\xe4\xec\x05\x05\x11\xfe\f\v߉\x15o2\xa5\xfcq\xfa\x1b\xef\xbe\xd0\xf6{ߞH\xc0炀\xd9\xfcg\xbf\xa9e\xf2\xd8\xed\r\"\x85\xcb\x0e|\xe3\xf0\x1c\xa2\x80\x84\x7f\x8e\x82\x1f<\x01\xf5\xe2I\x1b\x859\x04\t\xba\x86\xec\xd2h\xfb9ޤn@u\x9c\x81\x10\xcd/\xb5\b~0\\(;\x19\xcf\xc3\xef\xfbi\t%\x84@j0~\x04\xcd.:\xe4%\x8bu0~\x17\x9a\xf0\xf7:\xe0Ĺ\x01\xff\xf6") diff --git a/testdata/fuzz/FuzzDecodeSample/seed-high_ipb_8x8_cabac b/testdata/fuzz/FuzzDecodeSample/seed-high_ipb_8x8_cabac new file mode 100644 index 0000000..c83e79e --- /dev/null +++ b/testdata/fuzz/FuzzDecodeSample/seed-high_ipb_8x8_cabac @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x17gd\x00\n\xac\xd3\v\x13\xa1\x00\x00\x03\x00\x01\x00\x00\x03\x00\x14\x0f\x12%8\x00\x00\x00\x05h\xea\xec\xb2,\x00\x00\x02}\x06\x05\xff\xffy\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=2 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 pb_ratio=1.30 aq=0\x00\x80\x00\x00\x05\xdce\x88\x84\x01\xffѷmbx\xad@\x17wT\xae\x10OS\xc8?\t\xff\x8c\xcd6\xdaK\f0\xf0\xe4)oD\"\x1c\v9s\x95\x94\xf7\x17\xf6\xee\x15V\x96\n\xe6\xeey\x04fE\xad9\xe9۬\xf6IF\xd7xZE\xb6R\n\xbd\x9d\xebM\x04X\xa9_o}\x1e\xa9Z\xe1\v2\xe2\xdaԒ/y*\xf7\x9e\xfe(VC\\V\x17?\x9c\xb6\tb\x8c\xe4\xb0 ^h&\x94\xd4j\x8fl/\t:\xf2\x82a\xc4\xeb\"i\xa6\x8e\xf5,u0\xad@㋇r3D\x05\x0f/\xc2p\x86\xb8\x8a\xc7\x1a{\x8eZRL\x9f\x85Z\x7f\x04\x8e\xed\xb9@1\xd2B\xd9<\x92\xe9\xd6\b\xf2\xe5f\x14\x8ao\xe3e%\x9f\xaf\xd7\xeb\x0etj{\x8b\x186\xa0\xac\xb3\x19\x0fʻ]\x81 ,\xf2\x8f\xeb\xb6\x05\x0fJ\f>\xf8\xec P\x02\xe6c\xc7\xf9\xed\x15\xa0LIk\xefd\xf8\xe2\x17\xc5\xfa\x9fx`\xd5x\xbd\xfa[\x03\x0fY\xcd\x03z\xb8G\x9e\x16z\xfb\xa3\xb6\x1020B\xaf\xd4*\xe94I\xe5V\x96\x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04\xfc.\x8d\xfa\xc6\xfeM\xe2\xe1\xeba}&p\x84H[>\xef\xbb\xfc*\x1e}\x0e\xd7'\xffy\x84X:FӰ\x9a\xf2%\xdf\\\xc4k\xc8\x16\xc9\x15\x98\x98\x81\xe7݁5\xd1\xced\x98\xae$S\xfd\x18\x04\xf0\xc1\xf1\x15\xe6%\xabKZ\x00#\x1d\xf4GP\x1fW\x05%\x17\x8c\x84\xa05\x94\n\r\x80]\xcca\x9a|\xc8\xc8$9z") diff --git a/testdata/fuzz/FuzzDecodeSample/seed-high_ipb_8x8_cavlc b/testdata/fuzz/FuzzDecodeSample/seed-high_ipb_8x8_cavlc new file mode 100644 index 0000000..48c76a3 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeSample/seed-high_ipb_8x8_cavlc @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x17gd\x00\n\xac\xd3\v\x13\xa1\x00\x00\x03\x00\x01\x00\x00\x03\x00\x14\x0f\x12%8\x00\x00\x00\x05h\xca\xec\xb2,\x00\x00\x02}\x06\x05\xff\xffy\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=0 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=2 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 pb_ratio=1.30 aq=0\x00\x80\x00\x00\x05\xdce\x88\x84\x01\xfd\x10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f6A\xf3\x12\xa4?\xfa\xc0\xe9\bɊ\x02\xca\xe7\xfb\xea\x01␩\xca\x03!\xbf\xdf-F\x90a\x90\xb4\x8b\xc1\xea\xf0)\x9aa)\x0eAPz\xbd \x00\xf2\x10\x89\x8a\x03\xa5\xfd\xff\xae\x10\xc4\xd5%jA\xd4\x19\b\xac Ed\xaaI\xcck\x98b\x17d\"\xf4\xf9\x80\v\xb9\x86ƍ\xa9\xf0\x93# <\x83TCR\xc2Hh\xac6\xa6\x13bO\x9c\xe3b}`\x0e\x18\x90,\x89\x8c\u0602\xda\rqHP\x97\xe7\xec\x88\xe3\xffЎ\"\xa0\xedB\x1d|\x00\x1e'\x86t \x94\x9c-&\x7f\xfa\a\x10\x04\x01\x99y\xaa\x1b3\x9b\x96\xf5\xcd\xc4^\x19Q\x8d\n\x81|\xaf\xff\x00\xfa\xb3\xc2Bb\xbe]\xceď\xb2\x0f\x98\x95#\xff\xce\bb\xe2\x12\xe5 \xea\xc0iҝ\xac\r\xa6O\xdfZ\x8d \xc3!i\x17\x83\xd5\xeb\xa4\xe1\x85B<Ğ\xafH\x00<\x84\"b\x80\xe9\x7f\x7f\xed\x01\xc7#\xa5(\x1b\xb7\xfb\xe0\x1c\x81\x03\x81\xd0\x000\x02N͛%6\xb9\xe96@ћp\xd231t\x1e\xa5\x10\x86\x00.c\b\xc8\x1bR\xbe\x1c\xda\x12*\xafܴ\x88p\xaa\xc89\x90~\x82^B\x10Z\xf3\xb6\x16\xd7\xff\xd6\xc0\xe5%\x0e\xf94\x9f\xff\xfd\xa8EDG\x87cO\xfc\xd5\x18\x91I\xcb\x7f\xcc\x1f\x00\a\x8b\xc3*1\xa1P/\x95\xff놡\x84B|\xde=^\xf9\x00\x1a\xc4d\x85\x03\xfb\xfb\xffA\xb2pԄs\x90\xf5{h\xb7\x9a\x0e\x86=\x9b\xfd\x01f\x96h\x9bժ\x06\x9f\x15,\x1a\xc8\xfe\xfb\x10\xa4 \x02U4\x00\xf9p\x1cL\x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ga@\xa5s-\xaf#\x9a59=\xe1\xc5?>\x0f攏\xc8\x03->\x9d\xbc]#\xd7\x02\x1a`\x11.\x82\xd7g\x99\xb5o4*\xe6.\xecQ\xfd\xd49\x11\xdaě\xcc(\x7f\xeeī\x91%O\xbdm\xd1\x05\x97\rY\xca)\xcc\xd8b\xb6/b\x1e]0\x10\xef\xfa\xbc\xb6\xeftm\x9e\xfb\xc0\x9e\a\x98Oep\x961\x83\xb5\xcd\x04\x9b!\x84\xa9\xfbv\xd9\xf7,\a48Nm\x01rn\xb3*\x00\x8e{'>\x81\xbe\xdf睝M\x8c0^֊g\xfe#!\x00\xe9\t\xc4\uec3c\xf4YLe\x8a\x95\xd5\xc8I1b\xb3\x83\xc1\x9d\x12h>\xbb/;\xbe\x97y*") diff --git a/testdata/fuzz/FuzzDecodeSample/seed-main_intra_cabac b/testdata/fuzz/FuzzDecodeSample/seed-main_intra_cabac new file mode 100644 index 0000000..b470282 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeSample/seed-main_intra_cabac @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x15gM@\n\xdc,N\x84\x00\x00\x03\x00\x04\x00\x00\x03\x00P\x01\x99|\xc20\xba\xfeh,\xb6\xf1e )\xbeN\xac\xe5\xc0\x97\a\x9b\x18Q\xc35B&ܢ\xe0ҹ\xb6ϵ\x0fn\xcexd\xc2f\xa4ؔ\x91\x1b\xf4\xcd\x16,\xa8m8\x9e\xfb\xb0\xb9a q9`UwM\xa1\x1fңkeV\xbbIO\xe2LA\xb9\xfb\xfc<\xb2\x1b\xc1h\xb7\xb92\xc0\"t\xc1\x19f\x99۵\xf4I\xb4\xdc\xf7\x9b3\xf9\xe7@o\xbd\xd7\xf7 ^5\xd3(\x1b\x80!\xa1~5\xf2ƒO+\x8e\xa8u8\x1f\x9fq\xd0\xeb>T\x91\xcf}m@Z\x82|g\xe1a\x80\x81\x8c\xaad\u05cb\x1b<\x98:b~{\x8e\xe2\xf3\x17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88\xc8i\x8c\x10x\x1b\x95\x17\xec\xcf\xe3&\xca\vG\xb1N\xae\xc4\x19\x0e\x99\x9c#\x04ٟ\x837%y\xd0u\xb6\x87@6bÕ+\x8b\xa9\xc2.eQ\xa2\xff\x92\xc5\x13\xe7\t\xa7\\E\xad\xb2D\xbf\xd6\xc3N\x8f\xf6\x19Ū\xe8P\x86\xf9\x8c\xeeߖ\xeb\xcd+\xf5\x9d~<=\xecm\x90\xbcT\xd0r\x98fx\xb8\xa7\xab\x1b\xa4\xa5\xd3jA\x81F\xe0\t\xb0ٚd\x86\x88u9!:\x10k\xf6\xe4\x1d_\xad\xa7\xb9\xd1\xf7\xb24\xdd\xd5\xd1\xea\xca!T7,\x8f\xc1t2SJ\xbf\x00&\xb02\x80\x93\xe0\v\x02M\xbe\x9aLwǾP\x00vr~ì\xe10E,u\x13(\x16`\xf2\x01͒\xcb\xef\x9e&\x02\a\xdd\xecwP\x1a\xe2\xe5T$\xb3\x8b\x93Tr\x92R{7\xf8\xe8QDNI\xb3#\xef}\x1a\xab\x0f\x88\xf9ݭe\xf0\xe5\x81\xd1#\x1c\x96\xee5\x90锡\x89D\xd9\\\xc0\xe0\xd05ؒ\xef\x17\x92\xffߒ\xf4\v\xf0\x89ʐ\x01\x15\xb7\xdd\xfe\x14\x98\x13\xe8\xf5u\xb9\xcf^\xaaKk[\xfc\r\x96\xabI\xe9\xach\xba\x85\xe7\xd6\xca4;\x93L\x947\xa8\xe69\x98\x9b8\xae\x10Q\xa4\x96\xbbL\xf9å\xad\x00\x1a\xbeB`܃W\x06\xfd\x1a\xeeO]\x8c\\b\x1b\xfd\x9e\xe3\xaaӇ# \x90\xe4") diff --git a/testdata/fuzz/FuzzDecodeSample/seed-main_ip_fade b/testdata/fuzz/FuzzDecodeSample/seed-main_ip_fade new file mode 100644 index 0000000..60ae2e5 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeSample/seed-main_ip_fade @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x16gM@\n\xdb\v\x13\xa1\x00\x00\x03\x00\x01\x00\x00\x03\x00\x14\x0f\x12&\xe0\x00\x00\x00\x04h\xea̲\x00\x00\x022\x06\x05\xff\xff.\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=2 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 aq=0\x00\x80\x00\x00\x05\xdce\x88\x84?\xadn\xda\xc4\xf1Z\x80.\xee\xa9\\ \x9e\xa7\x90~\x13\xff\x19\x9am\xb4\x96\x18a\xe1\xc8RވD8\x16r\xe7+)\xee/\xed\xdc*\xad,\x15\xcd\xdc\xf2\b̋ZsӷY쒍\xae\xf0\xb4\x8bl\xa4\x15{;֚\b\xb1R\xbe\xde\xfa=R\xb5\xc2\x16eŵ\xa9$^\xf2U\xef=\xfcP\xac\x86\xb8\xac.\x7f9l\x12\xc5\x19\xc9`@\xbc\xd0M)\xa8\xd5\x1e\xd8^\x12u\xe5\x04É\xd6D\xd3M\x1d\xeaX\xeaaZ\x81\xc7\x17\x0e\xe4f\x88\n\x1e_\x84\xe1\rq\x15\x8e4\xf7\x1c\xb4\xa4\x99?\n\xb4\xfe\t\x1d\xdbr\x80c\xa4\x85\xb2y%Ӭ\x11\xe5\xca\xc9aI\xbf\x8d\x94\x96~\xbf_\xac9ѩ\xee,`ڂ\xb2\xccd?*\xedv\x04\x80\xb3\xca?\xae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܃W\x06\xfd\x1a\xeeO]\x8c\\b\x1b\xfd\x9e\xe3\xaaӇ# \x90\xe4") diff --git a/testdata/fuzz/FuzzDecodeSample/seed-main_ip_weightp b/testdata/fuzz/FuzzDecodeSample/seed-main_ip_weightp new file mode 100644 index 0000000..60ae2e5 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeSample/seed-main_ip_weightp @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x16gM@\n\xdb\v\x13\xa1\x00\x00\x03\x00\x01\x00\x00\x03\x00\x14\x0f\x12&\xe0\x00\x00\x00\x04h\xea̲\x00\x00\x022\x06\x05\xff\xff.\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=2 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 aq=0\x00\x80\x00\x00\x05\xdce\x88\x84?\xadn\xda\xc4\xf1Z\x80.\xee\xa9\\ \x9e\xa7\x90~\x13\xff\x19\x9am\xb4\x96\x18a\xe1\xc8RވD8\x16r\xe7+)\xee/\xed\xdc*\xad,\x15\xcd\xdc\xf2\b̋ZsӷY쒍\xae\xf0\xb4\x8bl\xa4\x15{;֚\b\xb1R\xbe\xde\xfa=R\xb5\xc2\x16eŵ\xa9$^\xf2U\xef=\xfcP\xac\x86\xb8\xac.\x7f9l\x12\xc5\x19\xc9`@\xbc\xd0M)\xa8\xd5\x1e\xd8^\x12u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x1c\x96\xee5\x90锡\x89D\xd9\\\xc0\xe0\xd05ؒ\xef\x17\x92\xffߒ\xf4\v\xf0\x89ʐ\x01\x15\xb7\xdd\xfe\x14\x98\x13\xe8\xf5u\xb9\xcf^\xaaKk[\xfc\r\x96\xabI\xe9\xach\xba\x85\xe7\xd6\xca4;\x93L\x947\xa8\xe69\x98\x9b8\xae\x10Q\xa4\x96\xbbL\xf9å\xad\x00\x1a\xbeB`܃W\x06\xfd\x1a\xeeO]\x8c\\b\x1b\xfd\x9e\xe3\xaaӇ# \x90\xe4") diff --git a/testdata/fuzz/FuzzDecodeSample/seed-main_ipb_cabac b/testdata/fuzz/FuzzDecodeSample/seed-main_ipb_cabac new file mode 100644 index 0000000..4637ce8 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeSample/seed-main_ipb_cabac @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x15gM@\n酉Ѐ\x00\x00\x03\x00\x80\x00\x00\n\a\x89\x12\x9c\x00\x00\x00\x04hꌲ\x00\x00\x02}\x06\x05\xff\xffy\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=2 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=0 open_gop=0 weightp=0 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 pb_ratio=1.30 aq=0\x00\x80\x00\x00\x05\xdce\x88\x84\x01\xff\xadn\xda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\x88u9!:\x10k\xf6\xe4\x1d_\xad\xa7\xb9\xd1\xf7\xb24\xdd\xd5\xd1\xea\xca!T7,\x8f\xc1t2SJ\xbf\x00&\xb02\x80\x93\xe0\v\x02M\xbe\x9aLwǾP\x00vr~ì\xe10E,u\x13(\x16`\xf2\x01͒\xcb\xef\x9e&\x02\a\xdd\xecwP\x1a\xe2\xe5T$\xb3\x8b\x93Tr\x92R{7\xf8\xe8QDNI\xb3#\xef}\x1a\xab\x0f\x88\xf9ݭe\xf0\xe5\x81\xd1#\x1c\x96\xee5\x90锡\x89D\xd9\\\xc0\xe0\xd05ؒ\xef\x17\x92\xffߒ\xf4\v\xf0\x89ʐ\x01\x15\xb7\xdd\xfe\x14\x98\x13\xe8\xf5u\xb9\xcf^\xaaKk[\xfc\r\x96\xabI\xe9\xach\xba\x85\xe7\xd6\xca4;\x93L\x947\xa8\xe69\x98\x9b8\xae\x10Q\xa4\x96\xbbL\xf9å\xad\x00\x1a\xbeB`܃W\x06\xfd\x1a\xeeO]\x8c\\b\x1b\xfd\x9e\xe3\xaaӇ# \x90") diff --git a/testdata/fuzz/FuzzDecodeSample/seed-main_ipb_cavlc b/testdata/fuzz/FuzzDecodeSample/seed-main_ipb_cavlc new file mode 100644 index 0000000..5ff7f44 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeSample/seed-main_ipb_cavlc @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x15gM@\n酉Ѐ\x00\x00\x03\x00\x80\x00\x00\n\a\x89\x12\x9c\x00\x00\x00\x04hʌ\xb2\x00\x00\x02}\x06\x05\xff\xffy\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=0 ref=2 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=2 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=0 open_gop=0 weightp=0 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 pb_ratio=1.30 aq=0\x00\x80\x00\x00\x05\xdce\x88\x84\x01\xfe!\x11W\x06\x04/\xc0B\x8c\x84\x00\x02֠Q\xa5\x00\x04\xa1zq\xf9N\xa5\xf1\xeb\x15\xffൗ\xe6\xa46g\x12\xd7;tG\x11<\x18\xbc\x86R\xf0NR\xff\xf1\x7f;\t\x1f#\x0f\x98\x97+\xff\xdc\x03n\x94^\x9a3N\x9f\xbe\xb5\x1aA\x82)\xa9\x1b\xa3\xd5\xebq4\x18t1\"\xb2z\xbd@>c\x11\xb1\xc0*\xe3\xfb\xe5\x00\xf1LT\xe7\x00\x88O\xf7\xc0\x80\x00@\x00\x00\x04\x00\x00\x82a\x00\x01Q|\x000\x007cq\"P\xa2xS\tRL\x03\xc3\\\xf0d\x8d\xb8\x80\x1c\x95\xbf\xb9\x80\x02\xe8#\xaaF\xd4\xc0\b\xd3hP\x931\xdf\x05\xf0\x18B?Nɵ-\x80\b$\x99\xff\xfbN\x00\xa7)\xfc\x88҈\xa8\x88\xdb`\x16\x14\xff\x99H2\x10\xa3Z\xe7v\x90\x1c\x01\x14\xc82\x0eEj\x80\xb0\xb9\xc5\xc42\x93\xd0[H\xebQ\xa4\x18d-\"|z\xbc\na\xeab\x98\xa8pS\xd5\xeb\x06\xb9\f\xd2\a\xd3o\xfb\xe7\bfr\x14\xe4A\xd4\n\xe1zd1\x10\x11g\xab\xdc\xe0\xb2\xcd\x02\xb1\xd0\xfa#8!\x9d\bSt\x1dT\x1ac\xb5\xc3YU\xe7\xc0`\f\xc1\x018\x84\x84\xb6v@\xfa\xa7ҖH\xf07'6\t22\xa2\x02\xd5\xff\xf9f\xa1\xf5\xb8x\x84\x7f\xfb\x93 \x06Y\xc0\x82 \x0fp\x83\xc6Sf\n\xc3D!\x860n26\xc0\xed\x84\xfd\xf6\x85\xea\"T8\xc9\xe8\x97\xff\xa2+\x11Q&\xc85\x82\a\xf3R\x1b3\x9b\x96\xaa\xe6\xe2'\x86t \x94\x9c-&\x7f\xfb\xf3R\x1b3\x9b\x96\xf5\xcc\x1d\xa8\xd2\f2\x16\x91x=^\xd2ď\xb2\x0f\x98\x95!\xff\xd6\aHFLP\x16W?\xdfP\x0f\x14\x85NP\x19\r\xfe\xf9j4\x83\f\x85\xa4^\x0fW\x81L\xd3\tHr\n\x83\xd5\xe9\x00\a\x90\x84LP\x1d/\xef\xfdp\x86&\xa9+R\x0e\xa0\xc8Ea\x02+%RNc\\\xc3\x10\xbb!\x17\xa7\xcc\x00]\xcc64mO\x84\x99\x19\x01\xe4\x1a\xa2\x1a\x96\x12CEa\xb50\x9b\x12|\xe7\x1b\x13\xeb\x00pādLf\xc4\x16\xd0k\x8aB\x84\xbf?dG\x1f\xfe\x88\xe2*\x0e\xd4!\xd7\xc0\x01\xe2xgB\tI\xc2\xd2g\xff\xa0q\x00@\x19\x97\x9a\xa1\xb39\xb9o\\\xdcE\xe1\x95\x18Ш\x17\xca\xff\xf0\x0f\xab<$&+\xe5\xdc\xecH\xfb \xf9\x89R?\xfc\xe0\x86.!.R\x0e\xac\x06\x9d)\xda\xc0\xdad\xfd\xf5\xa8\xd2\f2\x16\x91x=^\xbaN\x18T#\xccI\xea\xf4\x80\x03\xc8B&(\x0e\x97\xf7\xfe\xd0\x1cr:R\x81\xbb\x7f\xbe\x01\xc8\x108\x1d\x00\x03\x00$\xecٲSk\x9e\x93d\r\x19\xb7\r#3\x17A\xeaQ\b`\x02\xe60\x8c\x81\xb5+\xe1͡\"\xaa\xfd\xcbH\x87\n\xac\x83\x99\a\xe8%\xe4!\x05\xa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ae\xa6\x87\xed\xfd\xff\xbe(\x00\b\x1cx@\x00|\x01\x06\x83\x01\x00\x01\xd0`P\xe8\x14\x82\x19\x06\x95\xb0\xa4\x0eu\xfc\x1f\x023\x99\xdbC0\x02EH\x1e\x18;6\xb8p\xa4\x1f\xc1\xe0Ə\x97\xb8\xad\x983\xfb\xbf\xff\x88|7\x81\xc2\a\x14\x83\xe0\xe0\x04\x00\xe4@\x0e\x928\x01\x82n\x06ڂ\x02\x00\x02\x04\xa6\x02\x82\x80\x00\x80(\x00\b\x13\x80\x00\x82P\x1c\x86%\xcc\x00\x86Ȉ\x13\xbc\xe4\x0ev\x06\a\x00\x02`0}\xcc\x01\x1b/\x000\t_\xc0\x93\xc4b\xbe\xf8\x7f\xfc\x15\xe2\x80\x00\x80\xb7\x06\x00\x02@\x00x\x80\x00 \xa8\x00\x02$\xb0q\x00L`\xe2\x00\x98\x83\x80\x00\x80\x18\x00\b\x181\x83\x80\x00\x80\x18\x00\b\x181\x11\x8b\xf6\x00\x1c\x04!\xf6\x1a\xf8\x93\xbep\xfe$\x91\x02@\x00\xa8\x00\x18\f\x84\a\x10\x808\x10\x00\x04<\xc0\xe4\x01\xc0\xb0\x00 D\x90W\x12\x80\f\xf6YD+\x85\x80\r\x86!\x00\xc1q\x80w\xff\xff\x9f\xf0\"\x7fEo-\xf2#\xabW\xf80D\x80\x0eC\b\x12\x18\x82Ay\x1a\xe0\x9fc\xc9\xd8\n\n#\xfc\x18\x17\xbf\x12*\xdeeO\xf1\xc7\xe8o\xbe\xfbC\xd9\xef~y#\x03\x9e\n\x03g\xf1\x9e\xfe\xa5\x97\xcbc\xb44\x8a\x17,9\xf3\x8f\xc0r\x8c\x04#\xfct\x10\xf9\xe0\x0f\xaf\x12H\xdc)\xc8 M\xd47f\x93G\xd9\xce\xf5#r\x03\xac\xe4\b\x86i}\xa8\x87\xe3\x05\u0083\xb1\x9c\xfc>\xff\xb6\x90\x92XD\x06\xa3\a\xe0L\xd2\xe3\xaeBX\xb7S\a\xe1y\xaf\x0fs\xae\fK\x90") diff --git a/testdata/fuzz/FuzzDecodeSample/seed-main_ipb_pyramid b/testdata/fuzz/FuzzDecodeSample/seed-main_ipb_pyramid new file mode 100644 index 0000000..f8f40b7 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeSample/seed-main_ipb_pyramid @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x17gM@\n\xec\xa1bt \x00\x00\x03\x00 \x00\x00\x03\x02\x81\xe2D\xb2\xc0\x00\x00\x00\x05h\xeb\xe2K \x00\x00\x02}\x06\x05\xff\xffy\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=25 keyint_min=2 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=28 ip_ratio=1.40 pb_ratio=1.30 aq=0\x00\x80\x00\x00\x05\xdce\x88\x84\x00\xff\xa5A\x06\xfb\xb4\xf0#\xacD\x9a\x0e\xb3;\x02\x1c\xec\f\xd9M\xb7x\x99|\xbe\xf5TZ\x8e\x8c<9\xc2\xfcv9\xda\xf0@j\x9f<@ \x85.Ϊ\xe1\x85\xf3\x06\x9d)\xf7\x00\u07bb\xf2m?A>P>\x17\xb7G\x95J\x88\\\xb0\xce\xd7\xc1Nb\xeb7\x81\x9e\xf1P\x7fw\xb3g\xcc\xc7\xc9\ac\xaa\xe1$\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e\xb3\x81\xe9\xa7G\xe2\xae̵R\x85\xec(H\xafp\aZ\x98\xd7\xc2ކ\x04'\xfa\x1fv\xb0Ֆo\x12\t\x05_\xd0\xd2 k\xf3/b;\by\f\x1d\xa7Ṩ\xfa\x03\x91\x90ь\xa8r\xd9\xc5v\xfa\xbe>\x80Q㭘\xc0pl\x0e\x92\xe4\x89'\xba\v7I\x9a\x02\x87 6\xcf\xd0@\xd32/\xed\x81\b\xfd\xc03O\x9eos\xa0\a\xa3\xb1g\"\xb7\xb0ߕ\xc7\xec﯑N\xf5\xc6n)@:\xd9\x15\xe0\x9a8*\xbb,y1\x1d\xe0\xe1\x93\r\x84\xbc\xf2Q\xcdk\xdc#\x0e˿B\x1c\n\xb9\x9b\xc6\xd7\x15gL\x12\xcf\x06\xef|\xf5") diff --git a/testdata/fuzz/FuzzDecodeSample/seed-main_ipb_temporal b/testdata/fuzz/FuzzDecodeSample/seed-main_ipb_temporal new file mode 100644 index 0000000..3c931a7 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeSample/seed-main_ipb_temporal @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x15gM@\n酉Ѐ\x00\x00\x03\x00\x80\x00\x00\n\a\x89\x12\x9c\x00\x00\x00\x04hꌲ\x00\x00\x02}\x06\x05\xff\xffy\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=2 b_pyramid=0 b_adapt=1 b_bias=0 direct=2 weightb=0 open_gop=0 weightp=0 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 pb_ratio=1.30 aq=0\x00\x80\x00\x00\x05\xdce\x88\x84\x01\xff\xadn\xda\xc4\xf1Z\x80.\xee\xa9\\ \x9e\xa7\x90~\x13\xff\x19\x9am\xb4\x96\x18a\xe1\xc8RވD8\x16r\xe7+)\xee/\xed\xdc*\xad,\x15\xcd\xdc\xf2\b̋ZsӷY쒍\xae\xf0\xb4\x8bl\xa4\x15{;֚\b\xb1R\xbe\xde\xfa=R\xb5\xc2\x16eŵ\xa9$^\xf2U\xef=\xfcP\xac\x86\xb8\xac.\x7f9l\x12\xc5\x19\xc9`@\xbc\xd0M)\xa8\xd5\x1e\xd8^\x12u\xe5\x04É\xd6D\xd3M\x1d\xeaX\xeaaZ\x81\xc7\x17\x0e\xe4f\x88\n\x1e_\x84\xe1\rq\x15\x8e4\xf7\x1c\xb4\xa4\x99?\n\xb4\xfe\t\x1d\xdbr\x80c\xa4\x85\xb2y%Ӭ\x11\xe5\xca\xc9aI\xbf\x8d\x94\x96~\xbf_\xac9ѩ\xee,`ڂ\xb2\xccd?*\xedv\x04\x80\xb3\xca?\xae\xd8\x14=(0\xfb㰁@\v\x99\x8f\x1f\xe7\xb4V\x811%\xaf\xbd\x93\xe3\x88_\x17\xea}\xe1\x83U\xe2\xf7\xe9l\f=g4\r\xea\xe1\x1exY\xeb\xee\x8e\xd8@\xc8\xc1\n\xbfP\xab\xa4\xd1'\x95ZX\xf1\xcb\b\xec.\x91W/+\xa8\xcc1ml\xe4\n\xeb&q\xf2\x044Y\xf0\xa7\x98at\xccx\xba\xb7!\xe3\xdf\xf7\x83i\x13֦de\t`\xac۠\xac\x96\x1d7\xe6CM\fTGk1\xfe\x12\x8e\x03\xeetf\xcc5\x80YF߸\xec\x9cC\xce,<9\xed\xcd\x04^\x9a{\xe7H>\x01\x99|\xc20\xba\xfeh,\xb6\xf1e )\xbeN\xac\x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f\xf6\x19Ū\xe8P\x86\xf9\x8c\xeeߖ\xeb\xcd+\xf5\x9d~<=\xecm\x90\xbcT\xd0r\x98fx\xb8\xa7\xab\x1b\xa4\xa5\xd3jA\x81F\xe0\t\xb0ٚd\x86\x88u9!:\x10k\xf6\xe4\x1d_\xad\xa7\xb9\xd1\xf7\xb24\xdd\xd5\xd1\xea\xca!T7,\x8f\xc1t2SJ\xbf\x00&\xb02\x80\x93\xe0\v\x02M\xbe\x9aLwǾP\x00vr~ì\xe10E,u\x13(\x16`\xf2\x01͒\xcb\xef\x9e&\x02\a\xdd\xecwP\x1a\xe2\xe5T$\xb3\x8b\x93Tr\x92R{7\xf8\xe8QDNI\xb3#\xef}\x1a\xab\x0f\x88\xf9ݭe\xf0\xe5\x81\xd1#\x1c\x96\xee5\x90锡\x89D\xd9\\\xc0\xe0\xd05ؒ\xef\x17\x92\xffߒ\xf4\v\xf0\x89ʐ\x01\x15\xb7\xdd\xfe\x14\x98\x13\xe8\xf5u\xb9\xcf^\xaaKk[\xfc\r\x96\xabI\xe9\xach\xba\x85\xe7\xd6\xca4;\x93L\x947\xa8\xe69\x98\x9b8\xae\x10Q\xa4\x96\xbbL\xf9å\xad\x00\x1a\xbeB`܃W\x06\xfd\x1a\xeeO]\x8c\\b\x1b\xfd\x9e\xe3\xaaӇ# \x90") diff --git a/testdata/fuzz/FuzzDecodeSample/seed-main_ipb_weightb b/testdata/fuzz/FuzzDecodeSample/seed-main_ipb_weightb new file mode 100644 index 0000000..e818072 --- /dev/null +++ b/testdata/fuzz/FuzzDecodeSample/seed-main_ipb_weightb @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x00\x00\x00\x15gM@\n酉Ѐ\x00\x00\x03\x00\x80\x00\x00\n\a\x89\x12\x9c\x00\x00\x00\x04hꬲ\x00\x00\x02}\x06\x05\xff\xffy\xdcE\xe9\xbd\xe6\xd9H\xb7\x96,\xd8 \xd9#\xee\xefx264 - core 164 r3204 373697b - H.264/MPEG-4 AVC codec - Copyleft 2003-2025 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=2 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=0 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=26 ip_ratio=1.40 pb_ratio=1.30 aq=0\x00\x80\x00\x00\x05\xdce\x88\x84\x01\xff\xadn\xda\xc4\xf1Z\x80.\xee\xa9\\ \x9e\xa7\x90~\x13\xff\x19\x9am\xb4\x96\x18a\xe1\xc8RވD8\x16r\xe7+)\xee/\xed\xdc*\xad,\x15\xcd\xdc\xf2\b̋ZsӷY쒍\xae\xf0\xb4\x8bl\xa4\x15{;֚\b\xb1R\xbe\xde\xfa=R\xb5\xc2\x16eŵ\xa9$^\xf2U\xef=\xfcP\xac\x86\xb8\xac.\x7f9l\x12\xc5\x19\xc9`@\xbc\xd0M)\xa8\xd5\x1e\xd8^\x12u\xe5\x04É\xd6D\xd3M\x1d\xeaX\xeaaZ\x81\xc7\x17\x0e\xe4f\x88\n\x1e_\x84\xe1\rq\x15\x8e4\xf7\x1c\xb4\xa4\x99?\n\xb4\xfe\t\x1d\xdbr\x80c\xa4\x85\xb2y%Ӭ\x11\xe5\xca\xc9aI\xbf\x8d\x94\x96~\xbf_\xac9ѩ\xee,`ڂ\xb2\xccd?*\xedv\x04\x80\xb3\xca?\xae\xd8\x14=(0\xfb㰁@\v\x99\x8f\x1f\xe7\xb4V\x811%\xaf\xbd\x93\xe3\x88_\x17\xea}\xe1\x83U\xe2\xf7\xe9l\f=g4\r\xea\xe1\x1exY\xeb\xee\x8e\xd8@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d68\xe8B\xe9\x14%\x1dG\x15|\x85\xc87bIŖI\xad\xe8\xd8R~Gy\x11\xe9\xaaf\xd1@\xbd\x81[U\xc9_;\xc4M`Y\xbdH\x88\xc8i\x8c\x10x\x1b\x95\x17\xec\xcf\xe3&\xca\vG\xb1N\xae\xc4\x19\x0e\x99\x9c#\x04ٟ\x837%y\xd0u\xb6\x87@6bÕ+\x8b\xa9\xc2.eQ\xa2\xff\x92\xc5\x13\xe7\t\xa7\\E\xad\xb2D\xbf\xd6\xc3N\x8f\xf6\x19Ū\xe8P\x86\xf9\x8c\xeeߖ\xeb\xcd+\xf5\x9d~<=\xecm\x90\xbcT\xd0r\x98fx\xb8\xa7\xab\x1b\xa4\xa5\xd3jA\x81F\xe0\t\xb0ٚd\x86\x88u9!:\x10k\xf6\xe4\x1d_\xad\xa7\xb9\xd1\xf7\xb24\xdd\xd5\xd1\xea\xca!T7,\x8f\xc1t2SJ\xbf\x00&\xb02\x80\x93\xe0\v\x02M\xbe\x9aLwǾP\x00vr~ì\xe10E,u\x13(\x16`\xf2\x01͒\xcb\xef\x9e&\x02\a\xdd\xecwP\x1a\xe2\xe5T$\xb3\x8b\x93Tr\x92R{7\xf8\xe8QDNI\xb3#\xef}\x1a\xab\x0f\x88\xf9ݭe\xf0\xe5\x81\xd1#\x1c\x96\xee5\x90锡\x89D\xd9\\\xc0\xe0\xd05ؒ\xef\x17\x92\xffߒ\xf4\v\xf0\x89ʐ\x01\x15\xb7\xdd\xfe\x14\x98\x13\xe8\xf5u\xb9\xcf^\xaaKk[\xfc\r\x96\xabI\xe9\xach\xba\x85\xe7\xd6\xca4;\x93L\x947\xa8\xe69\x98\x9b8\xae\x10Q\xa4\x96\xbbL\xf9å\xad\x00\x1a\xbeB`܃W\x06\xfd\x1a\xeeO]\x8c\\b\x1b\xfd\x9e\xe3\xaaӇ# \x90") diff --git a/testdata/fuzz/FuzzParseAVCC/seed-base_intra_nodb b/testdata/fuzz/FuzzParseAVCC/seed-base_intra_nodb new file mode 100644 index 0000000..0d33792 --- /dev/null +++ b/testdata/fuzz/FuzzParseAVCC/seed-base_intra_nodb @@ -0,0 +1,2 @@ +go test fuzz v1 +[]byte("\x01B\xc0\n\xff\xe1\x00\x15gB\xc0\n\xdc,N\x84\x00\x00\x03\x00\x04\x00\x00\x03\x00P 0 { + return fmt.Errorf("%d statement blocks were never run", len(missed)) + } + return nil + }, + } +} + +// Uncovered returns the blocks of a Go coverage profile (go help testflag, +// -coverprofile) that hold statements but ran zero times, and the statement +// count of the whole profile. A profile with no statements is an error, so a +// package that was not measured cannot pass. +func Uncovered(r io.Reader) (missed []string, total int, err error) { + sc := bufio.NewScanner(r) + first := true + for sc.Scan() { + line := sc.Text() + if first { + first = false + if !strings.HasPrefix(line, "mode:") { + return nil, 0, fmt.Errorf("not a coverage profile: %q", line) + } + continue + } + // file:startLine.startCol,endLine.endCol numStatements count + fields := strings.Fields(line) + if len(fields) != 3 { + return nil, 0, fmt.Errorf("malformed profile line %q", line) + } + n, err1 := strconv.Atoi(fields[1]) + c, err2 := strconv.Atoi(fields[2]) + if err1 != nil || err2 != nil { + return nil, 0, fmt.Errorf("malformed profile line %q", line) + } + total += n + if n > 0 && c == 0 { + missed = append(missed, fields[0]) + } + } + if err := sc.Err(); err != nil { + return nil, 0, err + } + if total == 0 { + return nil, 0, fmt.Errorf("the profile holds no statements") + } + return missed, total, nil +} diff --git a/tools/covergate/main_test.go b/tools/covergate/main_test.go new file mode 100644 index 0000000..b63baf2 --- /dev/null +++ b/tools/covergate/main_test.go @@ -0,0 +1,76 @@ +// Copyright (c) 2026, go-avkit +// SPDX-License-Identifier: BSD-3-Clause + +package main + +import ( + "bytes" + "os" + "path/filepath" + "strings" + "testing" +) + +const full = "mode: set\na.go:1.1,2.2 3 1\nb.go:4.1,5.2 2 7\n" + +func TestUncovered(t *testing.T) { + missed, total, err := Uncovered(strings.NewReader(full)) + if err != nil || len(missed) != 0 || total != 5 { + t.Fatalf("full profile: %v %d %v", missed, total, err) + } + // 1 statement of 1000 not run is 99.9%: the rounded print would say + // 100.0%, this must not. + missed, _, err = Uncovered(strings.NewReader(full + "c.go:9.1,9.9 1 0\nd.go:1.1,1.2 0 0\n")) + if err != nil || len(missed) != 1 || missed[0] != "c.go:9.1,9.9" { + t.Fatalf("missed %v err %v", missed, err) + } + for _, bad := range []string{"", "nonsense\n", "mode: set\nonly two\n", "mode: set\na.go:1.1,2.2 x 1\n", "mode: set\n"} { + if _, _, err := Uncovered(strings.NewReader(bad)); err == nil { + t.Errorf("%q accepted", bad) + } + } +} + +func TestRootCmd(t *testing.T) { + dir := t.TempDir() + write := func(name, body string) string { + p := filepath.Join(dir, name) + if err := os.WriteFile(p, []byte(body), 0o644); err != nil { + t.Fatal(err) + } + return p + } + run := func(args ...string) (string, string, error) { + var out, errb bytes.Buffer + cmd := RootCmd() + cmd.SetArgs(args) + cmd.SetOut(&out) + cmd.SetErr(&errb) + err := cmd.Execute() + return out.String(), errb.String(), err + } + if out, _, err := run(write("ok.out", full)); err != nil || !strings.Contains(out, "0 of 5") { + t.Fatalf("ok: %q %v", out, err) + } + if _, errs, err := run(write("bad.out", full+"c.go:9.1,9.9 1 0\n")); err == nil || !strings.Contains(errs, "c.go:9.1,9.9") { + t.Fatalf("bad: %q %v", errs, err) + } + if _, _, err := run(filepath.Join(dir, "missing")); err == nil { + t.Fatal("a missing profile passed") + } + if _, _, err := run(write("junk.out", "junk\n")); err == nil { + t.Fatal("junk passed") + } +} + +func TestMain(t *testing.T) { + var code int + old := osExit + osExit = func(c int) { code = c } + defer func() { osExit = old }() + os.Args = []string{"covergate"} + main() + if code != 1 { + t.Fatalf("exit code %d", code) + } +} diff --git a/tools/go.mod b/tools/go.mod new file mode 100644 index 0000000..912ca59 --- /dev/null +++ b/tools/go.mod @@ -0,0 +1,22 @@ +module github.com/go-avkit/decode/tools + +go 1.27.1 + +require ( + github.com/go-avkit/avkit v0.13.0 + github.com/go-avkit/decode v0.0.0 + github.com/spf13/cobra v1.10.2 +) + +require ( + github.com/Eyevinn/mp4ff v0.62.0 // indirect + github.com/asticode/go-astikit v0.30.0 // indirect + github.com/asticode/go-astits v1.17.0 // indirect + github.com/at-wat/ebml-go v0.19.4 // indirect + github.com/ebitengine/purego v0.9.0 // indirect + github.com/inconshreveable/mousetrap v1.1.0 // indirect + github.com/oops1/go.264 v1.12.0 // indirect + github.com/spf13/pflag v1.0.9 // indirect +) + +replace github.com/go-avkit/decode => .. diff --git a/tools/go.sum b/tools/go.sum new file mode 100644 index 0000000..18a82c4 --- /dev/null +++ b/tools/go.sum @@ -0,0 +1,34 @@ +github.com/Eyevinn/mp4ff v0.62.0 h1:Vx4U0xUfSdcwEgw1wBbTZ53+yZhlJpT7eIAkLUDaxmM= +github.com/Eyevinn/mp4ff v0.62.0/go.mod h1:97zsDIJUiDTYqKpqq/b1K9foamxXmvsgE4GdPrPK3ks= +github.com/asticode/go-astikit v0.30.0 h1:DkBkRQRIxYcknlaU7W7ksNfn4gMFsB0tqMJflxkRsZA= +github.com/asticode/go-astikit v0.30.0/go.mod h1:h4ly7idim1tNhaVkdVBeXQZEE3L0xblP7fCWbgwipF0= +github.com/asticode/go-astits v1.17.0 h1:KrDxalNhZ/GJkbgVweD5xxCA9XoaW7tHuFiJB/sAZxs= +github.com/asticode/go-astits v1.17.0/go.mod h1:psImoC1BhcAWIsyM/RnbO1OgUW+XSf8fZpFvF5McDyo= +github.com/at-wat/ebml-go v0.19.4 h1:6F767ThzH/JqNUsF79PwRFP0pwUF5ALXWJ6pXuiolI8= +github.com/at-wat/ebml-go v0.19.4/go.mod h1:wu3fQj+DWo6SOOl9c4yDi+gFs9Oa96Z2B5qxo1OxFYY= +github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= +github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/ebitengine/purego v0.9.0 h1:mh0zpKBIXDceC63hpvPuGLiJ8ZAa3DfrFTudmfi8A4k= +github.com/ebitengine/purego v0.9.0/go.mod h1:iIjxzd6CiRiOG0UyXP+V1+jWqUXVjPKLAI0mRfJZTmQ= +github.com/go-avkit/avkit v0.13.0 h1:aeRvSvu4beVmToykL9YiqeZN3MIQA3aXsbN/w0gRCBY= +github.com/go-avkit/avkit v0.13.0/go.mod h1:e6vXhNYj/ccY7454oZNTeSuKA7C4cBPA3usz3d6jxjA= +github.com/go-test/deep v1.1.0 h1:WOcxcdHcvdgThNXjw0t76K42FXTU7HpNQWHpA2HHNlg= +github.com/go-test/deep v1.1.0/go.mod h1:5C2ZWiW0ErCdrYzpqxLbTX7MG14M9iiw8DgHncVwcsE= +github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= +github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +github.com/oops1/go.264 v1.12.0 h1:72uGb5MAyX83lSrK3aMvxYtxdQHOct7E4bD8YoJxbBU= +github.com/oops1/go.264 v1.12.0/go.mod h1:9QWDhblzn+OCeWpxJLpIfr/G/N5MSf849wVixp4Hzas= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/spf13/cobra v1.10.2 h1:DMTTonx5m65Ic0GOoRY2c16WCbHxOOw6xxezuLaBpcU= +github.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiTUUS4= +github.com/spf13/pflag v1.0.9 h1:9exaQaMOCwffKiiiYk6/BndUBv+iRViNW+4lEMi0PvY= +github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/tools/jvt/clip.go b/tools/jvt/clip.go new file mode 100644 index 0000000..4d990fc --- /dev/null +++ b/tools/jvt/clip.go @@ -0,0 +1,33 @@ +// Copyright (c) 2026, go-avkit +// SPDX-License-Identifier: BSD-3-Clause + +package main + +import ( + "fmt" + "os/exec" + "strconv" + + "github.com/spf13/cobra" +) + +// clipCmd cuts the first N video packets of a real file, stream copy, into a +// new file. The first N packets in decoding order are self-contained (every +// reference of a picture precedes it), so ffmpeg and this decoder are asked for +// the same N pictures, and a two-hour film is not decoded to test a decoder. +func clipCmd() *cobra.Command { + var n int + c := &cobra.Command{ + Use: "clip SRC DST", Short: "stream-copy the first N video packets of SRC into DST", Args: cobra.ExactArgs(2), + RunE: func(cmd *cobra.Command, args []string) error { + out, err := exec.Command("ffmpeg", "-hide_banner", "-loglevel", "error", "-y", "-i", args[0], + "-map", "0:v:0", "-c", "copy", "-frames:v", strconv.Itoa(n), "-an", "-sn", args[1]).CombinedOutput() + if err != nil { + return fmt.Errorf("ffmpeg: %w: %.200s", err, out) + } + return nil + }, + } + c.Flags().IntVar(&n, "frames", 900, "number of video packets to keep") + return c +} diff --git a/tools/jvt/diff.go b/tools/jvt/diff.go new file mode 100644 index 0000000..ed570eb --- /dev/null +++ b/tools/jvt/diff.go @@ -0,0 +1,127 @@ +// Copyright (c) 2026, go-avkit +// SPDX-License-Identifier: BSD-3-Clause + +package main + +import ( + "crypto/md5" + "fmt" + "io" + "os" + "path/filepath" + + "github.com/go-avkit/decode" + "github.com/spf13/cobra" +) + +// diffCmd says where picture INDEX of a stream first goes wrong against the +// suite's own reference yuv: how many macroblocks differ and which come first. +// It is how a defect is localised before anything is explained. +func diffCmd() *cobra.Command { + var dir string + c := &cobra.Command{ + Use: "diff NAME INDEX", Short: "locate the macroblocks of one picture that differ from the reference yuv", Args: cobra.ExactArgs(2), + RunE: func(cmd *cobra.Command, args []string) error { + var idx int + if _, err := fmt.Sscan(args[1], &idx); err != nil { + return err + } + path, err := fetchStream(dir, args[0]) + if err != nil { + return err + } + return diffPicture(cmd.OutOrStdout(), path, idx) + }, + } + c.Flags().StringVar(&dir, "dir", "", "directory of downloaded streams") + _ = c.MarkFlagRequired("dir") + return c +} + +func diffPicture(w io.Writer, path string, idx int) error { + data, err := os.ReadFile(path) + if err != nil { + return err + } + d, err := decode.New(decode.Config{MaxFrameMBs: 1 << 17}, 4) + if err != nil { + return err + } + defer d.Close() + var frames []decode.Frame + fs, err := d.DecodeAnnexB(data) + frames = append(frames, fs...) + if err == nil { + fs, err = d.Flush() + frames = append(frames, fs...) + } + if err != nil { + return err + } + y := refYUV(path) + if y == "" { + return fmt.Errorf("no reference yuv beside %s", filepath.Base(path)) + } + ref, err := os.ReadFile(y) + if err != nil { + return err + } + if len(frames) > 0 && idx < 0 { + // INDEX -1: list every picture that differs. + size := len(frames[0].Y) + len(frames[0].Cb) + len(frames[0].Cr) + var bad []int + for i, f := range frames { + if (i+1)*size > len(ref) || frameMD5(f) != fmt.Sprintf("%x", md5.Sum(ref[i*size:(i+1)*size])) { + bad = append(bad, i) + } + } + fmt.Fprintf(w, "%d of %d pictures differ: %v\n", len(bad), len(frames), bad) + // Pictures that are right but in the wrong place point at output order + // (POC), not at decoding. + where := map[string]int{} + for i := 0; (i+1)*size <= len(ref); i++ { + where[fmt.Sprintf("%x", md5.Sum(ref[i*size:(i+1)*size]))] = i + } + moved := 0 + var sample []string + for _, i := range bad { + if j, ok := where[frameMD5(frames[i])]; ok { + moved++ + if len(sample) < 12 { + sample = append(sample, fmt.Sprintf("%d->%d", i, j)) + } + } + } + fmt.Fprintf(w, "%d of the differing pictures exist elsewhere in the reference (ours->reference): %v\n", moved, sample) + return nil + } + if idx < 0 || idx >= len(frames) { + return fmt.Errorf("picture %d of %d", idx, len(frames)) + } + f := frames[idx] + size := len(f.Y) + len(f.Cb) + len(f.Cr) + if (idx+1)*size > len(ref) { + return fmt.Errorf("reference yuv holds %d pictures", len(ref)/size) + } + ref = ref[idx*size : (idx+1)*size] + mbw := (f.Width + 15) / 16 + bad := map[int]int{} + var order []int + for i := range f.Y { + if f.Y[i] != ref[i] { + mb := (i/f.Width/16)*mbw + (i%f.Width)/16 + if bad[mb] == 0 { + order = append(order, mb) + } + bad[mb]++ + } + } + fmt.Fprintf(w, "%dx%d, %d macroblocks, %d differ in luma\n", f.Width, f.Height, mbw*((f.Height+15)/16), len(order)) + for i, mb := range order { + if i == 12 { + break + } + fmt.Fprintf(w, " MB %d (x %d, y %d): %d samples\n", mb, mb%mbw, mb/mbw, bad[mb]) + } + return nil +} diff --git a/tools/jvt/main.go b/tools/jvt/main.go new file mode 100644 index 0000000..d2bcd65 --- /dev/null +++ b/tools/jvt/main.go @@ -0,0 +1,489 @@ +// Copyright (c) 2026, go-avkit +// SPDX-License-Identifier: BSD-3-Clause + +// Command jvt measures the decoder against ffmpeg. +// +// jvt fetch -dir D NAME... download and unpack JVT conformance streams (ITU-T H.264.1) +// jvt compare -dir D -manifests M NAME... +// decode each stream, compare every picture's MD5 with ffmpeg's +// framemd5, write M/NAME.md5 and print the table +// jvt file PATH the same for a real MP4/MKV file; prints hashes only +// +// Nothing here is part of the library: it is the oracle harness, kept apart +// (its own module) so the library's dependencies and coverage gate stay small. +package main + +import ( + "archive/zip" + "bufio" + "bytes" + "context" + "crypto/md5" + "encoding/hex" + "errors" + "fmt" + "io" + "net/http" + "os" + "os/exec" + "path/filepath" + "strconv" + "strings" + "time" + + "github.com/go-avkit/avkit/container" + "github.com/go-avkit/decode" + "github.com/spf13/cobra" +) + +const baseURL = "https://www.itu.int/wftp3/av-arch/jvt-site/draft_conformance/AVCv1/" + +var osExit = os.Exit + +const ( + maxZip = 300 << 20 + maxExtract = 1 << 30 +) + +var bitstreamExt = map[string]bool{".264": true, ".jvt": true, ".avc": true, ".26l": true, ".h264": true, ".jsv": true, ".bit": true, ".bits": true} + +func main() { + if err := RootCmd().Execute(); err != nil { + osExit(1) + } +} + +// RootCmd builds the command tree. +func RootCmd() *cobra.Command { + root := &cobra.Command{Use: "jvt", Short: "measure the H.264 decoder against ffmpeg", SilenceUsage: true} + var dir, manifests string + fetch := &cobra.Command{ + Use: "fetch NAME...", Short: "download and unpack JVT conformance streams", Args: cobra.MinimumNArgs(1), + RunE: func(cmd *cobra.Command, names []string) error { + for _, n := range names { + if _, err := fetchStream(dir, n); err != nil { + return fmt.Errorf("%s: %w", n, err) + } + fmt.Fprintln(cmd.OutOrStdout(), "fetched", n) + } + return nil + }, + } + compare := &cobra.Command{ + Use: "compare NAME...", Short: "decode and compare with ffmpeg's framemd5", Args: cobra.MinimumNArgs(1), + RunE: func(cmd *cobra.Command, names []string) error { + out := cmd.OutOrStdout() + fmt.Fprintln(out, "bitstream | profile | frames(ours/ffmpeg) | match") + bad := 0 + for _, n := range names { + r := compareStream(dir, manifests, n) + fmt.Fprintln(out, r.row()) + if !r.Match { + bad++ + } + } + if bad > 0 { + return fmt.Errorf("%d of %d bitstreams do not match", bad, len(names)) + } + return nil + }, + } + for _, c := range []*cobra.Command{fetch, compare} { + c.Flags().StringVar(&dir, "dir", "", "durable directory for downloaded streams") + _ = c.MarkFlagRequired("dir") + } + compare.Flags().StringVar(&manifests, "manifests", "", "directory to write NAME.md5 into (empty: do not write)") + file := &cobra.Command{ + Use: "file PATH...", Short: "compare real MP4/MKV files; prints hashes only", Args: cobra.MinimumNArgs(1), + RunE: func(cmd *cobra.Command, args []string) error { + var failed error + for _, p := range args { + start := time.Now() + r, err := compareFile(p) + fmt.Fprintf(cmd.OutOrStdout(), "%s | %s | frames %d/%d | match %v | md5-of-md5s %s | ours %.1fs | %v\n", + filepath.Base(p), r.Profile, r.Ours, r.Ref, r.Match, r.Digest, r.Seconds, err) + _ = start + if err != nil || !r.Match { + failed = errors.New("a file did not match") + } + } + return failed + }, + } + bits := &cobra.Command{ + Use: "bits PATH...", Short: "compare raw bitstream files; writes PATH-without-extension.md5 beside each", Args: cobra.MinimumNArgs(1), + RunE: func(cmd *cobra.Command, paths []string) error { + bad := 0 + for _, p := range paths { + name := strings.TrimSuffix(filepath.Base(p), filepath.Ext(p)) + r := compareBitstream(result{Name: name, Profile: "?"}, p, filepath.Dir(p)) + fmt.Fprintln(cmd.OutOrStdout(), r.row()) + if !r.Match { + bad++ + } + } + if bad > 0 { + return fmt.Errorf("%d of %d bitstreams do not match", bad, len(paths)) + } + return nil + }, + } + root.AddCommand(fetch, compare, file, bits, diffCmd(), clipCmd(), seedsCmd()) + return root +} + +// fetchStream downloads NAME.zip into dir/NAME and unpacks it, returning the +// bitstream's path. It is a no-op when the bitstream is already there. +func fetchStream(dir, name string) (string, error) { + dst := filepath.Join(dir, name) + if p, err := findBitstream(dst); err == nil { + return p, nil + } + if err := os.MkdirAll(dst, 0o755); err != nil { + return "", err + } + ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute) + defer cancel() + req, err := http.NewRequestWithContext(ctx, http.MethodGet, baseURL+name+".zip", nil) + if err != nil { + return "", err + } + resp, err := http.DefaultClient.Do(req) + if err != nil { + return "", err + } + defer resp.Body.Close() + if resp.StatusCode != http.StatusOK { + return "", fmt.Errorf("HTTP %d", resp.StatusCode) + } + body, err := io.ReadAll(io.LimitReader(resp.Body, maxZip+1)) + if err != nil { + return "", err + } + if len(body) > maxZip { + return "", errors.New("zip larger than the bound") + } + if err := unzip(body, dst); err != nil { + return "", err + } + return findBitstream(dst) +} + +// unzip extracts a flat archive into dst, by base name (so no entry can leave +// dst), within a total size bound. +func unzip(body []byte, dst string) error { + zr, err := zip.NewReader(bytes.NewReader(body), int64(len(body))) + if err != nil { + return err + } + var total int64 + for _, f := range zr.File { + if f.FileInfo().IsDir() { + continue + } + rc, err := f.Open() + if err != nil { + return err + } + data, err := io.ReadAll(io.LimitReader(rc, maxExtract-total+1)) + rc.Close() + if err != nil { + return err + } + if total += int64(len(data)); total > maxExtract { + return errors.New("archive expands past the bound") + } + if err := os.WriteFile(filepath.Join(dst, filepath.Base(f.Name)), data, 0o644); err != nil { + return err + } + } + return nil +} + +// findBitstream returns the H.264 bitstream in dir: the largest file with a +// bitstream extension. +func findBitstream(dir string) (string, error) { + entries, err := os.ReadDir(dir) + if err != nil { + return "", err + } + best, size := "", int64(-1) + for _, e := range entries { + if !bitstreamExt[strings.ToLower(filepath.Ext(e.Name()))] { + continue + } + if info, err := e.Info(); err == nil && info.Size() > size { + best, size = filepath.Join(dir, e.Name()), info.Size() + } + } + if best == "" { + return "", fmt.Errorf("no bitstream in %s", dir) + } + return best, nil +} + +// result is one row of the table. +type result struct { + Name, Profile string + Ours, Ref int + Match bool + Err string + Digest string + Seconds float64 // decode time of our decoder, wall clock +} + +func (r result) row() string { + s := fmt.Sprintf("%s | %s | %d/%d | %v", r.Name, r.Profile, r.Ours, r.Ref, r.Match) + if r.Err != "" { + s += " | " + r.Err + } + return s +} + +func compareStream(dir, manifests, name string) result { + r := result{Name: name, Profile: "?"} + path, err := fetchStream(dir, name) + if err != nil { + r.Err = err.Error() + return r + } + return compareBitstream(r, path, manifests) +} + +// compareBitstream decodes the raw bitstream at path and compares it with ffmpeg. +func compareBitstream(r result, path, manifests string) result { + data, err := os.ReadFile(path) + if err != nil { + r.Err = err.Error() + return r + } + r.Profile = profileOf(data) + ref, err := ffmpegMD5s(path, true) + if err != nil { + r.Err = "ffmpeg: " + err.Error() + return r + } + r.Ref = len(ref) + ours, size, err := decodeAnnexBSize(data) + r.Ours = len(ours) + if err != nil { + r.Err = err.Error() + } + r.Match = err == nil && equal(ours, ref) + if err == nil && !r.Match { + r.Err = fmt.Sprintf("first difference at picture %d", firstDiff(ours, ref)) + } + if y := refYUV(path); y != "" { + if yref, yerr := yuvMD5s(y, size); yerr == nil { + r.Err += fmt.Sprintf(" [conformance yuv: %d pictures, ours equal %v, ffmpeg equal %v]", + len(yref), equal(ours, yref), equal(ref, yref)) + } + } + if r.Match && manifests != "" { + if err := writeManifest(filepath.Join(manifests, r.Name+".md5"), ref); err != nil { + r.Err = err.Error() + } + } + return r +} + +func compareFile(path string) (result, error) { + r := result{Name: filepath.Base(path)} + data, err := os.ReadFile(path) + if err != nil { + return r, err + } + rd, err := container.NewReader(data) + if err != nil { + return r, err + } + var id uint32 + for _, t := range rd.File().Tracks { + if t.Kind == container.Video { + id = t.ID + break + } + } + start := time.Now() + frames, err := decode.DecodeTrack(rd, id, decode.Config{MaxFrameMBs: 1 << 17}) + r.Seconds = time.Since(start).Seconds() + for _, t := range rd.File().Tracks { + if t.ID == id { + r.Profile = fmt.Sprintf("%s %dx%d", t.Codec, t.Width, t.Height) + } + } + ours := make([]string, len(frames)) + for i, f := range frames { + ours[i] = frameMD5(f) + } + r.Ours = len(ours) + if err != nil { + return r, err + } + ref, err := ffmpegMD5s(path, false) + if err != nil { + return r, err + } + r.Ref = len(ref) + r.Match = equal(ours, ref) + sum := md5.Sum([]byte(strings.Join(ours, "\n"))) + r.Digest = hex.EncodeToString(sum[:]) + return r, nil +} + +// firstDiff is the index of the first picture where a and b differ, or the +// length of the shorter when one is a prefix of the other. +func firstDiff(a, b []string) int { + for i := range min(len(a), len(b)) { + if a[i] != b[i] { + return i + } + } + return min(len(a), len(b)) +} + +func equal(a, b []string) bool { + if len(a) != len(b) { + return false + } + for i := range a { + if a[i] != b[i] { + return false + } + } + return true +} + +func frameMD5(f decode.Frame) string { + h := md5.New() + h.Write(f.Y) + h.Write(f.Cb) + h.Write(f.Cr) + return hex.EncodeToString(h.Sum(nil)) +} + +// decodeAnnexB decodes a whole raw stream, returning each picture's MD5 in +// display order. Pictures decoded before an error are kept. +func decodeAnnexB(data []byte) ([]string, error) { + out, _, err := decodeAnnexBSize(data) + return out, err +} + +// decodeAnnexBSize also returns the byte size of one picture. +func decodeAnnexBSize(data []byte) (out []string, size int, err error) { + d, err := decode.New(decode.Config{MaxFrameMBs: 1 << 17}, 4) + if err != nil { + return nil, 0, err + } + defer d.Close() + add := func(fs []decode.Frame) { + for _, f := range fs { + out = append(out, frameMD5(f)) + size = len(f.Y) + len(f.Cb) + len(f.Cr) + } + } + const chunk = 1 << 20 + for len(data) > 0 { + n := min(chunk, len(data)) + fs, err := d.DecodeAnnexB(data[:n]) + add(fs) + if err != nil { + return out, size, err + } + data = data[n:] + } + fs, err := d.Flush() + add(fs) + return out, size, err +} + +// yuvMD5s hashes a conformance suite's own reference output, a concatenation +// of size-byte pictures, so that ffmpeg is not the only witness. +func yuvMD5s(path string, size int) ([]string, error) { + data, err := os.ReadFile(path) + if err != nil || size <= 0 { + return nil, fmt.Errorf("no reference yuv (%v)", err) + } + var out []string + for ; len(data) >= size; data = data[size:] { + s := md5.Sum(data[:size]) + out = append(out, hex.EncodeToString(s[:])) + } + return out, nil +} + +// refYUV finds the suite's reference output beside a bitstream. +func refYUV(bitstream string) string { + m, _ := filepath.Glob(filepath.Join(filepath.Dir(bitstream), "*.yuv")) + if len(m) == 1 { + return m[0] + } + return "" +} + +// ffmpegMD5s runs ffmpeg -f framemd5 and returns the MD5 column. forceH264 +// names the raw demuxer for bare bitstreams, whose extension may be foreign. +func ffmpegMD5s(path string, forceH264 bool) ([]string, error) { + args := []string{"-hide_banner", "-loglevel", "error", "-threads", "1"} + if forceH264 { + args = append(args, "-f", "h264") + } + args = append(args, "-i", path, "-map", "0:v:0", "-fps_mode", "passthrough", "-pix_fmt", "yuv420p", "-f", "framemd5", "-") + var stderr bytes.Buffer + cmd := exec.Command("ffmpeg", args...) + cmd.Stderr = &stderr + out, err := cmd.Output() + if err != nil { + // ffmpeg repeats one message per slice; the first line says it all. + first, _, _ := strings.Cut(strings.TrimSpace(stderr.String()), "\n") + return nil, fmt.Errorf("%w: %.120s", err, first) + } + return parseFrameMD5(out) +} + +// parseFrameMD5 reads ffmpeg's framemd5 text: comment lines start with #, the +// others are "stream, dts, pts, duration, size, md5". +func parseFrameMD5(out []byte) ([]string, error) { + var md5s []string + sc := bufio.NewScanner(bytes.NewReader(out)) + for sc.Scan() { + line := strings.TrimSpace(sc.Text()) + if line == "" || line[0] == '#' { + continue + } + f := strings.Split(line, ",") + if len(f) != 6 { + return nil, fmt.Errorf("framemd5 line %q has %d fields", line, len(f)) + } + md5s = append(md5s, strings.TrimSpace(f[5])) + } + return md5s, sc.Err() +} + +func writeManifest(path string, md5s []string) error { + var b strings.Builder + b.WriteString("# ffmpeg -f framemd5 md5 column, display order; frames=" + strconv.Itoa(len(md5s)) + "\n") + for _, m := range md5s { + b.WriteString(m + "\n") + } + return os.WriteFile(path, []byte(b.String()), 0o644) +} + +// profileOf names the profile and level of the first SPS: profile_idc and +// constraint flags (H.264 clause 7.3.2.1, seq_parameter_set_data). +func profileOf(data []byte) string { + for i := 0; i+6 < len(data); i++ { + if data[i] == 0 && data[i+1] == 0 && data[i+2] == 1 && data[i+3]&0x1f == 7 { + idc, flags, level := data[i+4], data[i+5], data[i+6] + name := map[byte]string{66: "Baseline", 77: "Main", 88: "Extended", 100: "High", 110: "High10", 122: "High4:2:2", 244: "High4:4:4P"}[idc] + if name == "" { + name = "profile" + strconv.Itoa(int(idc)) + } + if idc == 66 && flags&0x40 != 0 { + name = "ConstrainedBaseline" + } + return fmt.Sprintf("%s L%d.%d", name, level/10, level%10) + } + } + return "?" +} diff --git a/tools/jvt/main_test.go b/tools/jvt/main_test.go new file mode 100644 index 0000000..6ca5409 --- /dev/null +++ b/tools/jvt/main_test.go @@ -0,0 +1,111 @@ +// Copyright (c) 2026, go-avkit +// SPDX-License-Identifier: BSD-3-Clause + +package main + +import ( + "archive/zip" + "bytes" + "os" + "os/exec" + "path/filepath" + "slices" + "strings" + "testing" +) + +func TestParseFrameMD5(t *testing.T) { + out := "#format: frame checksums\n#version: 2\n\n0, 0, 0, 1, 38016, aaaa\n0, 1, 1, 1, 38016, bbbb\n" + got, err := parseFrameMD5([]byte(out)) + if err != nil || !slices.Equal(got, []string{"aaaa", "bbbb"}) { + t.Fatalf("%v %v", got, err) + } + if _, err := parseFrameMD5([]byte("0, 1, 2\n")); err == nil { + t.Fatal("a short line was accepted") + } +} + +func TestProfileOf(t *testing.T) { + cases := map[string]struct { + sps []byte + want string + }{ + "cb": {[]byte{0, 0, 1, 0x67, 66, 0xc0, 12}, "ConstrainedBaseline L1.2"}, + "main": {[]byte{0, 0, 0, 1, 0x67, 77, 0, 31}, "Main L3.1"}, + "odd": {[]byte{0, 0, 1, 0x67, 55, 0, 10}, "profile55 L1.0"}, + "none": {[]byte{1, 2, 3}, "?"}, + } + for name, c := range cases { + if got := profileOf(c.sps); got != c.want { + t.Errorf("%s: %q, want %q", name, got, c.want) + } + } +} + +func TestUnzipAndFind(t *testing.T) { + var buf bytes.Buffer + zw := zip.NewWriter(&buf) + for name, body := range map[string]string{"x/../../evil.264": "evil", "readme.txt": "r", "dir/": ""} { + w, err := zw.Create(name) + if err != nil { + t.Fatal(err) + } + w.Write([]byte(body)) + } + zw.Close() + dir := filepath.Join(t.TempDir(), "s") + if err := os.MkdirAll(dir, 0o755); err != nil { + t.Fatal(err) + } + if err := unzip(buf.Bytes(), dir); err != nil { + t.Fatal(err) + } + p, err := findBitstream(dir) + if err != nil || filepath.Dir(p) != dir || filepath.Base(p) != "evil.264" { + t.Fatalf("%q %v: an entry escaped or was missed", p, err) + } + if err := unzip([]byte("not a zip"), dir); err == nil { + t.Fatal("garbage unzipped") + } + if _, err := findBitstream(t.TempDir()); err == nil { + t.Fatal("empty dir has a bitstream") + } + if _, err := findBitstream(filepath.Join(dir, "missing")); err == nil { + t.Fatal("missing dir has a bitstream") + } +} + +func TestEqualAndManifest(t *testing.T) { + if !equal([]string{"a"}, []string{"a"}) || equal([]string{"a"}, []string{"b"}) || equal([]string{"a"}, nil) { + t.Fatal("equal") + } + p := filepath.Join(t.TempDir(), "m.md5") + if err := writeManifest(p, []string{"x", "y"}); err != nil { + t.Fatal(err) + } + b, _ := os.ReadFile(p) + if !strings.HasPrefix(string(b), "# ffmpeg") || !strings.HasSuffix(string(b), "x\ny\n") { + t.Fatalf("%q", b) + } +} + +// With ffmpeg installed the bits command must agree on a committed stream. +func TestBitsAgainstFFmpeg(t *testing.T) { + if _, err := exec.LookPath("ffmpeg"); err != nil { + t.Skip("no ffmpeg") + } + var out bytes.Buffer + cmd := RootCmd() + cmd.SetOut(&out) + cmd.SetArgs([]string{"bits", "../../testdata/streams/base_ip_qp26.264"}) + // bits writes its manifest beside the stream; it must reproduce the one + // that is committed. + before, _ := os.ReadFile("../../testdata/streams/base_ip_qp26.md5") + if err := cmd.Execute(); err != nil { + t.Fatal(err, out.String()) + } + after, _ := os.ReadFile("../../testdata/streams/base_ip_qp26.md5") + if !bytes.Equal(before, after) || !strings.Contains(out.String(), "10/10 | true") { + t.Fatalf("%s", out.String()) + } +} diff --git a/tools/jvt/seeds.go b/tools/jvt/seeds.go new file mode 100644 index 0000000..e096671 --- /dev/null +++ b/tools/jvt/seeds.go @@ -0,0 +1,125 @@ +// Copyright (c) 2026, go-avkit +// SPDX-License-Identifier: BSD-3-Clause + +package main + +import ( + "bytes" + "encoding/binary" + "fmt" + "os" + "path/filepath" + "strings" + + "github.com/spf13/cobra" +) + +// seedsCmd writes the fuzz corpus the library's fuzz targets start from, in the +// "go test fuzz v1" file format, one file per stream and target. Real streams +// cut short are what a decoder meets when a file is truncated, and are a far +// better start than random bytes: the parameter sets and slice headers are +// already well formed, so mutation reaches the macroblock layer. +func seedsCmd() *cobra.Command { + return &cobra.Command{ + Use: "seeds STREAMS_DIR CORPUS_DIR", Short: "write the committed fuzz corpus from the test streams", Args: cobra.ExactArgs(2), + RunE: func(cmd *cobra.Command, args []string) error { + streams, err := filepath.Glob(filepath.Join(args[0], "*.264")) + if err != nil || len(streams) == 0 { + return fmt.Errorf("no streams in %s", args[0]) + } + for _, s := range streams { + data, err := os.ReadFile(s) + if err != nil { + return err + } + name := strings.TrimSuffix(filepath.Base(s), ".264") + nals := splitNALs(data) + if err := writeSeed(args[1], "FuzzDecodeAnnexB", name, head(data, 1500)); err != nil { + return err + } + if err := writeSeed(args[1], "FuzzDecodeSample", name, firstUnit(nals, 4)); err != nil { + return err + } + if err := writeSeed(args[1], "FuzzParseAVCC", name, avccOf(nals)); err != nil { + return err + } + } + fmt.Fprintf(cmd.OutOrStdout(), "wrote %d seeds per target\n", len(streams)) + return nil + }, + } +} + +func head(b []byte, n int) []byte { return b[:min(n, len(b))] } + +func writeSeed(dir, target, name string, data []byte) error { + d := filepath.Join(dir, target) + if err := os.MkdirAll(d, 0o755); err != nil { + return err + } + body := fmt.Sprintf("go test fuzz v1\n[]byte(%q)\n", data) + return os.WriteFile(filepath.Join(d, "seed-"+name), []byte(body), 0o644) +} + +// splitNALs cuts an Annex B stream into NAL units without start codes. +func splitNALs(b []byte) [][]byte { + var nals [][]byte + start := -1 + for i := 0; i+2 < len(b); i++ { + if b[i] == 0 && b[i+1] == 0 && b[i+2] == 1 { + if start >= 0 { + nals = append(nals, bytes.TrimRight(b[start:i], "\x00")) + } + start = i + 3 + i += 2 + } + } + if start >= 0 { + nals = append(nals, b[start:]) + } + return nals +} + +// firstUnit is the stream's first sample as length-prefixed NAL units: every NAL +// before the second slice, each cut to 1500 bytes with its length corrected. +func firstUnit(nals [][]byte, size int) []byte { + var out []byte + slices := 0 + for _, n := range nals { + if t := n[0] & 31; t == 1 || t == 5 { + if slices++; slices > 1 { + break + } + } + n = head(n, 1500) + out = binary.BigEndian.AppendUint32(out, uint32(len(n))) + out = append(out, n...) + } + return out +} + +// avccOf builds an avcC record from the stream's first SPS and PPS. +func avccOf(nals [][]byte) []byte { + var sps, pps []byte + for _, n := range nals { + switch n[0] & 31 { + case 7: + if sps == nil { + sps = n + } + case 8: + if pps == nil { + pps = n + } + } + } + if len(sps) < 4 || pps == nil { + return nil + } + b := []byte{1, sps[1], sps[2], sps[3], 0xff, 0xe1} + b = binary.BigEndian.AppendUint16(b, uint16(len(sps))) + b = append(b, sps...) + b = append(b, 1) + b = binary.BigEndian.AppendUint16(b, uint16(len(pps))) + return append(b, pps...) +} diff --git a/track_test.go b/track_test.go new file mode 100644 index 0000000..247ffc0 --- /dev/null +++ b/track_test.go @@ -0,0 +1,78 @@ +// Copyright (c) 2026, go-avkit +// SPDX-License-Identifier: BSD-3-Clause + +package decode + +import ( + "bytes" + "errors" + "slices" + "testing" + + "github.com/go-avkit/avkit/container" +) + +// mp4 muxes a stream's access units into an MP4 with avkit's own muxer. +func mp4(t *testing.T, path string, offset int32) []byte { + t.Helper() + aus := accessUnits(splitNALs(readFile(t, path))) + sps, pps, samples := parameterSets(aus) + var buf bytes.Buffer + m := container.NewProgressiveMuxer(&buf) + id, err := m.AddTrack(container.TrackConfig{ + Kind: container.Video, Codec: "avc1", Timescale: 1000, Width: 176, Height: 144, SPS: sps, PPS: pps, + }) + if err != nil { + t.Fatal(err) + } + for i, s := range samples { + if err := m.WriteSample(id, container.Sample{ + Data: prefixed(s, 4), Duration: 40, Sync: i == 0, CompositionOffset: offset, + }); err != nil { + t.Fatal(err) + } + } + if err := m.Close(); err != nil { + t.Fatal(err) + } + return buf.Bytes() +} + +func TestDecodeTrack(t *testing.T) { + path := "testdata/streams/base_ip_qp26.264" + r, err := container.NewReader(mp4(t, path, 80)) + if err != nil { + t.Fatal(err) + } + frames, err := DecodeTrack(r, r.TrackIDs()[0], Config{}) + if err != nil { + t.Fatal(err) + } + if !slices.Equal(sums(frames), reference(t, path)) { + t.Fatal("pictures differ from ffmpeg") + } + for i, f := range frames { + if want := int64(i)*40 + 80; f.PTS != want { + t.Fatalf("picture %d: PTS %d, want %d", i, f.PTS, want) + } + } +} + +func TestDecodeTrackErrors(t *testing.T) { + path := "testdata/streams/base_ip_qp26.264" + r, err := container.NewReader(mp4(t, path, 0)) + if err != nil { + t.Fatal(err) + } + if _, err := DecodeTrack(r, 99, Config{}); err == nil { + t.Error("an unknown track was decoded") + } + // A frame size over the limit is refused when the track's SPS is loaded. + if _, err := DecodeTrack(r, r.TrackIDs()[0], Config{MaxFrameMBs: 1}); !errors.Is(err, ErrOverLimit) { + t.Errorf("limit: %v", err) + } + // A sample that decodes to an error stops the walk, keeping what was out. + if _, err := DecodeTrack(r, r.TrackIDs()[0], Config{MaxSampleBytes: 100}); !errors.Is(err, ErrOverLimit) { + t.Errorf("sample limit: %v", err) + } +}