Skip to content

Add box patch test appending into a box without children - #80

Merged
jeanlf merged 1 commit into
gpac:masterfrom
tiffsequence:boxpatch-empty-container
Oct 16, 2026
Merged

jeanlf merged 1 commit into
gpac:masterfrom
tiffsequence:boxpatch-empty-container

Conversation

@tiffsequence

@tiffsequence tiffsequence commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Adds an mp4box-patch_box subtest, add-box-empty-container, for gpac/gpac#3970. It appends a name box (payload MYTAPE01) into the tmcd sample entry created by -add self:tc=25,0,0,0,0:fps=25. That sample entry has no child box, and none of the existing box-patch subtests appends into an empty box.

On gpac master 7d451dbd0 the patch is silently dropped: the tmcd entry stays at Size=34 with no child, and the subtest fails its hash check. With the one-line fix in gpac/gpac#3971 (for gpac/gpac#3970), the entry gets the name child and the subtest passes. The reference hash was generated with the fixed build (./make_tests.sh -hash scripts/mp4box-boxpatch.sh). The branch name matches the gpac fix branch, boxpatch-empty-container.

Tested on Ubuntu 24.04 aarch64, gcc 13.3.0, with ./make_tests.sh scripts/mp4box-boxpatch.sh scripts/boxpatch.sh:

  • master 7d451dbd0: mp4box-patch_box: add-box-empty-container:HashFail, gpac-patch_box: OK. 1/2 tests passed (16 subtests, 1 of 17 hash checks failed).
  • master + fix: mp4box-patch_box: OK, gpac-patch_box: OK. 2/2 tests passed (16 subtests).

Files: scripts/mp4box-boxpatch.sh, media/boxpatch/box_add_empty_container.xml, hash_refs/mp4box-patch_box-add-box-empty-container.hash.

Disclosure: this test was prepared with AI assistance (Claude). I reviewed it, and the commands and results above were run on the stated builds.

New mp4box-patch_box subtest "add-box-empty-container": appends a 'name'
box into the tmcd sample entry created by -add self:tc, which has no child
box. Fails on gpac master (patch silently dropped), passes with the fix
for gpac/gpac#3970.
@tiffsequence

Copy link
Copy Markdown
Contributor Author

Friendly reminder @jeanlf I have a matching test fix here as well for the gpac/gpac#3971 PR you merged. Appreciate you!

@jeanlf
jeanlf merged commit 6a6b49f into gpac:master Oct 16, 2026
@jeanlf

jeanlf commented Oct 16, 2026

Copy link
Copy Markdown
Member

Thanks !

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.

2 participants