• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Eyevinn / mp4ff / 43421660220
85%

Build:
DEFAULT BRANCH: master
Ran 13 Nov 2026 12:01PM UTC
Jobs 1
Files 240
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Nov 2026 12:01PM UTC coverage: 84.607% (+0.04%) from 84.568%
43421660220

push

github

tobbee
perf(mp4): copy only streamed boxes that may keep slices

Decoding every streamed box from a copy cost one allocation per fragment, which matters most for fragments with a single sample. Most fragment boxes keep no slices of the bytes they are decoded from: styp, sidx, prft, and a moof without encryption boxes, with mfhd, traf, tfhd, tfdt, trun, saiz, saio, sbgp and subs. keepsSlices walks the box headers, and the box is decoded in place when only those types occur. Any other type, an extended or invalid size, or bytes outside a box lead to a copy, as for encrypted moofs, emsg and the init segment boxes.

TestStreamBoxesKeepTheirData now also runs on a clear file, so that decoding without a copy is tested. It fails if senc is added to the slice-free types.

Allocations per run compared with no copy at all (benchstat, n=8):
- BenchmarkStreamSamples GetSamples: +2.6% when copying every box, +0.7% now
- BenchmarkStreamSamples AppendSamples: +7.2% when copying every box, +2.0% now
- 720 single-sample fragments: +5.4 to +6.1% when copying every box, +0.02% now
The remaining allocations are the copies of the init segment boxes. The times show no slowdown compared with no copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

16 of 20 new or added lines in 1 file covered. (80.0%)

67 existing lines in 2 files now uncovered.

27603 of 32625 relevant lines covered (84.61%)

0.85 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
85.56
-0.15% mp4/stream.go

Coverage Regressions

Lines Coverage ∆ File
63
85.56
-0.15% mp4/stream.go
4
94.63
8.82% mp4/stts.go
Jobs
ID Job ID Ran Files Coverage
1 43421660220.1 13 Nov 2026 12:01PM UTC 240
84.61
GitHub Action Run
Source Files on build 43421660220
  • Tree
  • List 240
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 6ca24c22 on github
  • Prev Build on master (#43406286743)
  • Next Build on master (#43422163578)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc