Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions hash_refs/mp4box-patch_box-add-box-empty-container.hash
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��f���g�E �߻dV��
12 changes: 12 additions & 0 deletions media/boxpatch/box_add_empty_container.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<GPACBOXES>

<!-- append into a box without children: the tmcd sample entry created by self:tc -->
<Box path="trak.mdia.minf.stbl.stsd.tmcd" trackID="2">
<BS fcc="name"/>
<BS value="8" bits="16"/>
<BS value="0" bits="16"/>
<BS text="MYTAPE01"/>
</Box>

</GPACBOXES>
5 changes: 5 additions & 0 deletions scripts/mp4box-boxpatch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ dst2="$TEMP_DIR/fixed.mp4"
do_test "$MP4BOX -no-check -patch $MEDIA_DIR/boxpatch/hdlr_add.xml $dst -out $dst2" "patch-hdlr"
do_hash_test $dst "patch-hdlr"

#append into a box with no child box yet (tmcd sample entry)
mp4file1="$TEMP_DIR/add-empty-container.mp4"
do_test "$MP4BOX -add $MEDIA_DIR/auxiliary_files/enst_video.h264 -add self:tc=25,0,0,0,0:fps=25 -patch $MEDIA_DIR/boxpatch/box_add_empty_container.xml -new $mp4file1" "add-box-empty-container"
do_hash_test $mp4file1 "add-box-empty-container"

test_end


Expand Down