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

Eyevinn / mp4ff / 44903087792
85%

Build:
DEFAULT BRANCH: master
Ran 21 Nov 2026 12:17PM UTC
Jobs 1
Files 249
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

21 Nov 2026 12:16PM UTC coverage: 84.908% (+0.2%) from 84.758%
44903087792

push

github

tobbee
feat(mp4): decode the item boxes of HEIF and AVIF images

A still image in a HEIF or AVIF file is an item in a file-level meta box. The boxes that describe the items were decoded as UnknownBox, so that neither the image size, its codec configuration nor the location of its data was available, and mp4ff-info showed them as unknown.

Add the boxes of ISO/IEC 14496-12:2026 clause 8.11 that such a file needs: pitm (8.11.4), iloc (8.11.3), iinf and infe (8.11.6), and iprp, ipco and ipma (8.11.14), and the item properties ispe and pixi of ISO/IEC 23008-12 clauses 6.5.3 and 6.5.6. MetaBox gets Pitm, Iloc, Iinf and Iprp. Properties with the same syntax as in a sample entry, such as av1C, hvcC, colr, clap and pasp, are decoded by their existing decoders now that ipco is a container.

iloc is decoded in version 0, 1 and 2 with field sizes of 0 to 8 bytes, and the sizes are kept so that the box is the same after encoding. The counts of iloc and ipma are checked against the remaining bytes before anything is allocated, and iloc, infe and ipma reject bytes after their last field in both decode paths. infe keeps whether the optional content encoding was present. Encoding returns an error for a value that does not fit in its field instead of truncating it.

boxtree knows where the children of iinf, iprp and ipco start, and the box fuzzer is seeded with the AVIF test file.

Tested with a 600x338 AVIF file, and outside the repository by decoding and encoding 14 HEIC and AVIF files from avifenc, heif-enc, sips and macOS with both decode paths, all identical after the round trip. The field values of the test file agree with MP4Box.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

728 of 800 new or added lines in 13 files covered. (91.0%)

2 existing lines in 1 file now uncovered.

28512 of 33580 relevant lines covered (84.91%)

0.85 hits per line

Uncovered Changes

Lines Coverage ∆ File
14
83.91
mp4/iinf.go
12
91.18
mp4/ipma.go
10
95.5
mp4/iloc.go
7
75.0
mp4/ipco.go
6
95.59
mp4/infe.go
6
85.0
mp4/ispe.go
6
87.76
mp4/pitm.go
6
85.71
mp4/pixi.go
4
88.24
mp4/iprp.go
1
82.05
-0.1% boxtree/boxtree.go

Coverage Regressions

Lines Coverage ∆ File
2
85.19
0.57% mp4/av1c.go
Jobs
ID Job ID Ran Files Coverage
1 44903087792.1 21 Nov 2026 12:17PM UTC 249
84.91
GitHub Action Run
Source Files on build 44903087792
  • Tree
  • List 249
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 3f5fa90a on github
  • Prev Build on master (#44097516102)
  • Next Build on master (#45055682838)
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