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

Eyevinn / mp4ff / 37015048333
83%
master: 83%

Build:
Build:
LAST BUILD BRANCH: fix/vvc-decconfrec-nalus
DEFAULT BRANCH: master
Ran 02 Oct 2026 01:45PM UTC
Jobs 1
Files 217
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

02 Oct 2026 01:44PM UTC coverage: 82.603% (+0.004%) from 82.599%
37015048333

Pull #618

github

tobbee
fix(mp4): reject sample data stored in other files

A track's sample entries point through data_reference_index to dref entries. A url entry without the self-contained flag puts the data in another file, as in Unified Streaming dref MP4s (mp4split --use_dref, Remix output) and MP4Box -dref files. mp4ff ignored this and read the chunk offsets from the file's own mdat. Without an mdat, mp4ff-crop and the segmenter example panicked. With one, in a file mixing referenced and self-contained tracks, mp4ff-crop wrote the wrong bytes and kept the reference.

Add TrakBox.CheckDataIsSelfContained and call it from File.CopySampleData and from the tools that read progressive sample data. The check reads the self-contained flag from any data entry, since QuickTime alis entries set it too. A url entry without a location, a missing dref, or an index outside it count as self-contained, so files that worked before still do. MdatBox.ReadData and CopyData now return an error for a nil mdat.

prog_8s_dref.mp4 is made with MP4Box -dref -add prog_8s.mp4 and refers to prog_8s.mp4 in the same directory. alis is added to the codespell ignore list as a QuickTime data entry type.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pull Request #618: fix(mp4): reject sample data stored in other files

58 of 71 new or added lines in 10 files covered. (81.69%)

23181 of 28063 relevant lines covered (82.6%)

0.83 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
73.91
-1.6% mp4/dref.go
3
69.23
-0.67% cmd/mp4ff-pslister/main.go
2
81.82
-0.2% cmd/mp4ff-mvhevc/main.go
2
78.19
-0.56% cmd/mp4ff-subslister/main.go
Jobs
ID Job ID Ran Files Coverage
1 37015048333.1 02 Oct 2026 01:45PM UTC 217
82.6
GitHub Action Run
Source Files on build 37015048333
  • Tree
  • List 217
  • Changed 11
  • Source Changed 0
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #618
  • PR Base - master (#37013036690)
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