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

Eyevinn / hi264 / 40543727013
89%

Build:
DEFAULT BRANCH: main
Ran 27 Oct 2026 04:44PM UTC
Jobs 1
Files 53
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

27 Oct 2026 04:43PM UTC coverage: 88.435% (+0.04%) from 88.394%
40543727013

push

github

tobbee
fix: give an error instead of panicking on an MP4 track without stsd or tkhd

hi264dec and hi264-mp4-extend read trak.Mdia.Minf.Stbl.Stsd without checking for nil, so an MP4 file whose video track lacks stsd crashed both. hi264dec also crashed on a fragmented file whose track lacks tkhd, and hi264-mp4-extend on an init segment without tkhd. Both commands now return an error. Removing boxes one at a time shows that mp4ff v0.61.0 already reports a missing mdat, stts, stsz, stsc, stco, tfhd or moof as an error, so those need no checks here.

hi264-mp4-extend searched every track for the AVC sample entry, but took the track ID and timescale from the first track and read samples from the first traf, so an init segment with another track first mixed up the tracks. It now requires an init segment with exactly one track, as a CMAF header has (ISO/IEC 23000-19:2024, 7.3.2.1), and takes everything from that track. hi264dec still selects the video track of a multi-track file by its hdlr.

go.mod requires mp4ff v0.61.0, which no longer panics in GetNrSamples and GetRangesForSampleInterval, which hi264dec uses, when a sample table box is missing.

The new tests remove tkhd, minf, stbl or stsd from a track, or add a second track to the init segment. All of them fail on main.

Claude-Session: https://claude.ai/code/session_01EagxH7hZnUUqiVghAbCdB2

63 of 79 new or added lines in 2 files covered. (79.75%)

1 existing line in 1 file now uncovered.

8786 of 9935 relevant lines covered (88.43%)

1.02 hits per line

Uncovered Changes

Lines Coverage ∆ File
16
75.38
1.5% cmd/hi264-mp4-extend/main.go

Coverage Regressions

Lines Coverage ∆ File
1
75.38
1.5% cmd/hi264-mp4-extend/main.go
Jobs
ID Job ID Ran Files Coverage
1 40543727013.1 27 Oct 2026 04:44PM UTC 53
88.43
GitHub Action Run
Source Files on build 40543727013
  • Tree
  • List 53
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 139a8bf3 on github
  • Prev Build on main (#38420010544)
  • Next Build on main (#40544097471)
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