diff --git a/hash_refs/mp4box-patch_box-add-box-empty-container.hash b/hash_refs/mp4box-patch_box-add-box-empty-container.hash new file mode 100644 index 00000000..a1fecfca --- /dev/null +++ b/hash_refs/mp4box-patch_box-add-box-empty-container.hash @@ -0,0 +1 @@ +Õìf‘�¶g¯E åß»dVÌì \ No newline at end of file diff --git a/media/boxpatch/box_add_empty_container.xml b/media/boxpatch/box_add_empty_container.xml new file mode 100644 index 00000000..cf52657d --- /dev/null +++ b/media/boxpatch/box_add_empty_container.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/scripts/mp4box-boxpatch.sh b/scripts/mp4box-boxpatch.sh index 80e73641..a8c053f8 100755 --- a/scripts/mp4box-boxpatch.sh +++ b/scripts/mp4box-boxpatch.sh @@ -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