Skip to content

fix(deps): update dependencies - #5

Merged
tannevaled merged 1 commit into
mainfrom
renovate/deps
Nov 25, 2026
Merged

tannevaled merged 1 commit into
mainfrom
renovate/deps

Conversation

@tannevaled

@tannevaled tannevaled commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/go-avkit/avkit v0.18.0 → v0.19.1 age confidence
github.com/go-avkit/decode v0.5.4 → v0.16.2 age confidence
github.com/go-simd/crc64 v0.3.0 → v0.3.2 age confidence

Release Notes

go-avkit/avkit (github.com/go-avkit/avkit)

v0.19.1

Compare Source

What's Changed

Full Changelog: go-avkit/avkit@v0.19.0...v0.19.1

v0.19.0

Compare Source

What's Changed

Full Changelog: go-avkit/avkit@v0.18.0...v0.19.0

go-avkit/decode (github.com/go-avkit/decode)

v0.16.2

Compare Source

What's Changed

Full Changelog: go-avkit/decode@v0.16.1...v0.16.2

v0.16.1

Compare Source

Performance

  • HE-AAC v2 (SBR + parametric stereo) decode: the SBR QMF analysis and synthesis banks now run in float32 on go-fft's float32 DCT-IV pair and quad kernels and go-simd/floats MulAddRows32 (#​122, refs #​77). On a Ryzen 9 7950X, one core, ps4-he2.mp4, 11 interleaved rounds: 699 ms before, 670 ms after (-4.2 %), against ffmpeg at 441 ms: 1.59x to 1.52x. An A/A control of the old build measured 702 ms.

Contract

  • The PCM of the SBR banks is no longer bit identical across CPU routes. The single float32 rounding at the output is replaced by per-slot 2-norm bounds derived from the parts (aac_sbr_qmf_bound_test.go), asserted against the float64 definition and 256-bit arithmetic, and a whole-chain bound of 2^-21 of the peak (measured 5e-8 on the low band, 1.9e-7 at the output). The 7 ISO PS vectors still match their references.
  • The PS output goldens are now recorded per route (arm64, arm64 under the race detector, amd64 with AVX2+FMA, 386, riscv64, loong64, ppc64le, s390x, and the portable route).

Tests

  • Runs libvpx's VP8 and VP9 decoder test vectors (#​121).

Dependencies

  • go-simd/floats v0.33.0.

v0.16.0

Compare Source

What's Changed

Full Changelog: go-avkit/decode@v0.15.3...v0.16.0

v0.15.3

Compare Source

H.264: CABAC residual decoding in one kernel call

decode now uses go-avkit/h264 v0.15.0 and go-videodsp/kernels v0.21.0 (#​117).

Each CABAC residual block is decoded by one call to an assembly kernel (amd64 and arm64, with a
pure-Go reference). It is 1.3 % faster on alien (2.051 → 2.025 s, Zen 4, core 9, 9 interleaved
rounds with an A/A control). Output is identical to v0.14.0 under a differential fuzz test run
5 minutes on each architecture, and every picture still equals ffmpeg's framemd5.

The H.264 decoder now takes about 2.0× ffmpeg n6.1.1's time on alien (-threads 1, same core).

Refs go-avkit/avkit#89

v0.15.2

Compare Source

decode now uses h264 v0.14.0: H.264 decoding is 5.9 % faster on alien (2.207 → 2.076 s) and 3.5 % on fade (0.849 → 0.819 s) on Zen 4; the gap to ffmpeg is now 2.07× on alien

Refs go-avkit/avkit#89

v0.15.1

Compare Source

decode now uses h264 v0.13.0: H.264 decoding is 3.3 to 3.6 % faster on Zen 4 (alien 2.266 → 2.185 s, fade 0.881 → 0.852 s, from the h264 notes)

Refs go-avkit/avkit#89

v0.15.0

Compare Source

Behaviour change: new frame formats on by default

HEVC streams in 4:0:0, 4:2:2 and 4:4:4, at 8 to 16 bits, now decode. Luma and chroma may have
different bit depths. Until v0.14.0 only 4:2:0 at 8 or 10 bits decoded, and every other format
returned ErrUnsupported (#​113).

What a caller must do. A Frame may now be any of these formats. Read Frame.Chroma,
BitDepth and BitDepthC rather than assuming 4:2:0:

  • (Frame).SampleBytes(plane) gives the bytes per sample of a plane: 1 at 8 bits, otherwise 2
    (a little-endian 16-bit word).
  • (Frame).ChromaSize() gives the size of the chroma planes.
  • A 4:0:0 frame has no Cb or Cr, and its BitDepthC is 0.

Two things are still refused: 4:4:4 coded as separate colour planes, which no profile allows,
and a frame of more than 2³¹−1 bytes, as ErrOverLimit.

Conformance. All 47 JCT-VC range-extension streams that the test can run decode to the
suite's md5, including Bitdepth_A, Bitdepth_B and TSUNEQBD (10-bit luma, 9-bit chroma).

Security

  • #​108 (fixed, #​112): on a 32-bit host, a large 10-bit picture could make the size of a
    plane wrap an int and panic. Frames are now bounded by their bytes, not their samples,
    computed without overflow, and the same limit applies on every platform.
  • New fuzz targets for the format check and the picture copy.
  • New memory-bomb test: a 4:4:4 16-bit stream with the picture-size limit raised must be
    refused before anything is allocated.

h264 v0.12.0

decode now uses h264 v0.12.0, whose decoder is 2.2 to 2.7 % faster on Zen 4.

Faster HEVC: picture reuse from h265 v0.24.0 (#​110)

decode now uses h265 v0.24.0 and releases each picture to it once the picture has been
converted to a Frame. The decoder reuses those planes instead of allocating new ones. Output
is unchanged.

Speed, Zen 4, one core (taskset -c 9), 7 ABBA rounds per entry point, median of 14
runs per side, frame count asserted in every run. A = v0.14.0 (8898999), B = main (4f1fcd3).
In an A/A control the medians differ by 0.0 to 0.3 %, and no B range overlaps an A range.

This measures #​110 alone. It was taken before #​112 and #​113, which change the picture copy
and were not timed.

stream entry point v0.14.0 (s) 4f1fcd3 (s) change minor page faults per frame
alien-main Frames 2.401 2.213 −7.8 % 1437 → 283
alien-main DecodeTrack 2.580 2.444 −5.3 % 2219 → 1317
fade-main Frames 1.358 1.261 −7.2 % 1628 → 451
fade-main DecodeTrack 1.461 1.386 −5.1 % 2513 → 1528

Refs go-avkit/avkit#89

v0.14.0

Compare Source

New: Frames, the streaming form of DecodeTrack

for f, err := range decode.Frames(r, trackID, decode.Config{}) {
    if err != nil {
        return err
    }
    use(f)
}

decode.Frames(r, trackID, cfg) returns an iter.Seq2[*Frame, error] that hands over one
picture at a time, for H.264 and HEVC, with the same edit-list and timestamp handling as
DecodeTrack. DecodeTrack keeps its signature and its results: it is now the same walk
collected into a slice.

  • Every *Frame is a fresh allocation the caller owns. Nothing is reused between
    iterations, so a Frame can be kept, stored or sent to another goroutine.
  • Leaving the loop (break, return) stops the decoding and closes the decoder.
  • An error is the last pair of the sequence, after every picture decoded before it.

On the 15 files of the edit-list corpus, with the edit list applied and ignored, Frames
yields exactly DecodeTrack's pictures, and both equal ffmpeg's md5.

Speed. Holding every picture until the end is what DecodeTrack's slice costs. A
caller that uses each Frame and lets it go saves that. Zen 4, one core, 7 rounds;
DecodeTrack against itself varied under 1 %:

clip DecodeTrack Frames page faults
H.264 alien, 238 pictures 2.63 s 2.53 s (-4 %) 194 000 → 25 000
H.264 fade, 120 1.05 s 1.00 s (-5 %) 100 000 → 18 000
HEVC alien-main, 238 2.66 s 2.47 s (-7 %) 515 000 → 339 000

HEVC still allocates a picture per decode inside go-avkit/h265; an opt-in picture release
there is in progress.

Tests. Every bound of the avcC and length-prefix parsers is now asserted on both
sides: the input one byte short is refused with the error that names it, and the input
that just fits is accepted. A mutation sweep of the file finds no guard that only a crash
defends.

Refs go-avkit/avkit#89

v0.13.0

Compare Source

HEVC: go-avkit/h265 v0.23.0, one more JCT-VC stream and the MV-HEVC base layer

decode moves from h265 v0.22.0 to v0.23.0.

Conformance, whole JCT-VC suite (HEVC_v1 and RExt, 196 streams), against v0.12.0:
152 decode to identical output, 0 are lost, 1 more decodes, and 43 are refused by both.

  • The new one is WPP_AND_TILE_AND_CABAC_BYPASS_ALIGN_1_HIGH_TP_444_14BIT_RExt_Apple_2.
    Its output md5 equals the YUV md5 the suite ships. h265 v0.23.0 decodes all 7 streams
    that use cabac_bypass_alignment. The other 6 use formats a Frame cannot carry
    (4:4:4 with 16-bit samples), so decode still refuses them with ErrUnsupported, which
    names the format.
  • MV-HEVC: the 9 MV-HEVC conformance streams now decode, base layer only. A Frame
    carries the base layer; units of other layers are ignored. Each one's md5 equals its
    shipped _0.yuv. v0.12.0 refused all 9.

CI. Every go test line of the workflow now carries an explicit -timeout.

Speed is not re-measured. The x86 host is unreachable and the M4 is loaded. The h265
change adds one branch on the residual path, taken only when the flag is set.

Refs go-avkit/avkit#89, go-avkit/h265#54

v0.12.0

Compare Source

H.264 is 2.5 times faster: go-avkit/h264 v0.11.0

decode moves from h264 v0.9.0 to v0.11.0, which brings the h264 speed work merged
since v0.9.0, including AVX2 kernels on amd64 for luma interpolation, weighting and
deblocking. The API is unchanged.

Speed through DecodeTrack, one core, 1080p clips, Apple M4 (indicative: the load
was 9 to 11 from other work, so ratios hold and absolute times do not):

clip v0.11.0 v0.12.0
alien (238 frames) 5.7 to 5.9 s 2.3 s
fade, explicit weights (120 frames) 2.0 s 0.8 s

Zen 4 has not been re-measured. ffmpeg is still faster: about 2.3 to 2.8 times on these
clips.

Output. fade equals ffmpeg's framemd5 on all 120 frames. On alien, the output is
identical before and after this release, and it is correct. The alien MP4 was made with
ffmpeg -c copy from a raw stream with B-frames. That remux writes no composition
offsets and an edit list of about two frames, so the file itself is malformed. Read
from that file, ffmpeg drops two pictures in decode order (display pictures 0 and 4).
decode applies the edit list in display order and returns raw pictures 2 to 239. Those
238 equal ffmpeg's framemd5 of the raw stream, and with the edit list ignored all 240
match. A properly muxed B-frame MP4 matches ffmpeg on 60 of 60 frames, with the edit list
and without.

Refs go-avkit/avkit#89

v0.11.0

Compare Source

HEVC: 8-bit streams are faster than v0.9.0 again (closes #​101)

decode moves to go-avkit/h265 v0.22.0, which decodes an 8-bit picture into bytes. A
Frame is now filled from those bytes with one copy per row; the per-frame narrowing
from 16-bit planes is gone. The API is unchanged.

Speed through DecodeTrack, fps ratios on Zen 4 (pinned core):

stream vs v0.10.0 vs v0.9.0 (third-party decoder)
Main (alien) 1.23 1.10
Main, explicit weights (fade) 1.20 1.06
Main (second stream) 1.22 1.14
Main 10 1.00 2.51

On an Apple M4 (indicative, load 7 to 10): 1.00 to 1.10 against v0.10.0, 1.43 to 2.84
against v0.9.0.

The 7 to 12 % x86 8-bit slowdown of v0.10.0 (#​101) is closed: no stream is slower than
v0.9.0 on either machine. The picture md5 of the four streams equals ffmpeg's on both.

Refs go-avkit/avkit#89

v0.10.0

Compare Source

HEVC is decoded by our own decoder, go-avkit/h265 v0.21.0

The HEVC path no longer uses github.com/gen2brain/h265, and that dependency is
removed. NewHEVC, DecodeAnnexB, DecodeTrack and PosterFrame keep their
signatures.

  • Each Frame owns its planes. Frame.PTS comes from the container sample through
    h265.Unit.Tag, and Frame.Corrupt comes from the decoder's own verdict.
  • A format a Frame cannot carry (4:2:2, 4:4:4, 4:0:0, above 10 bits, unequal luma and
    chroma depth) is refused at the SPS with an ErrUnsupported that names the format. It
    used to fail with gen2brain's "unsupported feature".
  • Zero bytes after a NAL unit's payload are dropped. ffmpeg's MP4 muxer leaves one.

Correctness. On the whole JCT-VC suite (HEVC_v1 and RExt, 196 streams), compared with
v0.9.0: 148 streams decode to identical output, 0 are lost, and 4 more decode. The 44
that both refuse are 37 formats a Frame cannot carry and 7 streams using
cabac_bypass_alignment. The md5 of four 1080p streams through DecodeTrack equals
ffmpeg's on x86 and on an Apple M4.

Speed. See the README table. Main 10 is 2.5 times faster on x86, and on the M4 every
stream is faster (1.3 to 2.8 times; indicative, load above 8). On x86 the 8-bit streams
are 7 to 12 % slower than v0.9.0, an open defect (#​101).
h265 keeps
16-bit planes, and a Frame holds one byte a sample at 8 bits, so every frame is narrowed
on the way out. The fix planned is native 8-bit planes in h265.

Refs go-avkit/avkit#89

v0.9.0

Compare Source

What's Changed

  • NewTrack: refuse a video codec that is not decoded, by name (VP9 was reported as corrupt) by @​tannevaled in #​98
  • Audio: decode linear PCM (ipcm, fpcm, raw) so WAVE is reachable by @​tannevaled in #​99

Full Changelog: go-avkit/decode@v0.8.0...v0.9.0

v0.8.0

Compare Source

What's Changed

Full Changelog: go-avkit/decode@v0.7.0...v0.8.0

v0.7.0

Compare Source

What's Changed

Full Changelog: go-avkit/decode@v0.6.0...v0.7.0

v0.6.0

Compare Source

What's Changed

Full Changelog: go-avkit/decode@v0.5.4...v0.6.0

go-simd/crc64 (github.com/go-simd/crc64)

v0.3.2

Compare Source

What's Changed

Full Changelog: go-simd/crc64@v0.3.1...v0.3.2

v0.3.1

Compare Source

What's Changed

Full Changelog: go-simd/crc64@v0.3.0...v0.3.1


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

@tannevaled

tannevaled commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor Author

ℹ️ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 3 additional dependencies were updated
  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.27.1 -> 1.27.4
github.com/go-avkit/bitstream v0.3.1 -> v0.4.0
github.com/go-avkit/h264 v0.9.0 -> v0.15.0
golang.org/x/sys v0.49.0 -> v0.50.0

@tannevaled tannevaled changed the title fix(deps): update module github.com/go-avkit/decode to v0.6.0 fix(deps): update dependencies Nov 15, 2026
@tannevaled
tannevaled force-pushed the renovate/deps branch 7 times, most recently from 5c2e2c2 to ed04cd8 Compare November 21, 2026 21:33
@tannevaled
tannevaled merged commit c0b392e into main Nov 25, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant