From a34221966f2d2faaf18bbdcc0a26818432c2f2b0 Mon Sep 17 00:00:00 2001 From: Cecilia Chen Date: Tue, 25 Aug 2026 09:52:32 +0800 Subject: [PATCH 1/2] Update the hash for AC-4 test cases Signed-off-by: Cecilia Chen --- hash_refs/ac4-package-crypt.hash | 2 +- hash_refs/ac4-package-dash-init-encrypted.hash | 2 +- hash_refs/ac4-package-dash-init.hash | 2 +- hash_refs/ac4-package-dash-mpd-encrypted.hash | Bin 20 -> 20 bytes hash_refs/ac4-package-dash-mpd.hash | 2 +- hash_refs/ac4-package-dash-seg-encrypted.hash | Bin 20 -> 20 bytes hash_refs/ac4-package-decrypt.hash | 3 +-- hash_refs/ac4-package-hls-m3u8-variant.hash | 2 +- hash_refs/mp4box-io-atsc3_test_audio.ac4-add.hash | 3 +-- .../mp4box-io-atsc3_test_audio.ac4-diso.hash | 2 +- hash_refs/mp4box-io-atsc3_test_audio.ac4-dts.hash | 2 +- ...p4box-io-atsc3_test_audio.ac4-mp4-inspect.hash | 2 +- hash_refs/reframer-ac4-rewrite.hash | Bin 20 -> 20 bytes hash_refs/tsmux-ac4-inspect-frame.hash | 2 +- 14 files changed, 11 insertions(+), 13 deletions(-) diff --git a/hash_refs/ac4-package-crypt.hash b/hash_refs/ac4-package-crypt.hash index 4fb4ae35..e4b565d1 100644 --- a/hash_refs/ac4-package-crypt.hash +++ b/hash_refs/ac4-package-crypt.hash @@ -1 +1 @@ -w#�gžïþÂùÀl¸ÚaäÙ"5·/ \ No newline at end of file +Äpõ6¿®ÑFŽÆêÐ=+�i8à \ No newline at end of file diff --git a/hash_refs/ac4-package-dash-init-encrypted.hash b/hash_refs/ac4-package-dash-init-encrypted.hash index 2698bac9..79374583 100644 --- a/hash_refs/ac4-package-dash-init-encrypted.hash +++ b/hash_refs/ac4-package-dash-init-encrypted.hash @@ -1 +1 @@ -™­V]¾½ìh•G›˜Õš¤—8 \ No newline at end of file +¨4ƒHä`ˆ-Y£)Br{‘úúÊÒ \ No newline at end of file diff --git a/hash_refs/ac4-package-dash-init.hash b/hash_refs/ac4-package-dash-init.hash index 6f3f6ae9..bbf85119 100644 --- a/hash_refs/ac4-package-dash-init.hash +++ b/hash_refs/ac4-package-dash-init.hash @@ -1 +1 @@ -^*©FOå@Ó ЀpÄ‹Â"S \ No newline at end of file +Gª0Äo~ë§ bís-D{g„Ò \ No newline at end of file diff --git a/hash_refs/ac4-package-dash-mpd-encrypted.hash b/hash_refs/ac4-package-dash-mpd-encrypted.hash index d75a97dd10087db3ebcb0c0234c0287ebc91d94e..b544cb0ebd8be0002bef716577cbe87b27e43cc0 100644 GIT binary patch literal 20 bcmbv{-z3ZnLx(0D3SA-T(jq literal 20 bcmZ3zJwx+vP<3BVa&6&}k6$$y$|M;8a2W}T diff --git a/hash_refs/tsmux-ac4-inspect-frame.hash b/hash_refs/tsmux-ac4-inspect-frame.hash index cdb5c499..3bde5996 100644 --- a/hash_refs/tsmux-ac4-inspect-frame.hash +++ b/hash_refs/tsmux-ac4-inspect-frame.hash @@ -1 +1 @@ -#UBH¥!1eg& '�½ƒjßÍ \ No newline at end of file +G®6ERܾ²U2ØÔX2_3¯È \ No newline at end of file From 11b0cf0d724a5fc25e8768132b206ecec32c4824 Mon Sep 17 00:00:00 2001 From: Cecilia Chen Date: Tue, 25 Aug 2026 11:56:58 +0800 Subject: [PATCH 2/2] Add test case for Preselection The test content file will be uploaded separately in the PR Signed-off-by: Cecilia Chen --- hash_refs/ac4-preselection-dash.hash | 2 ++ hash_refs/ac4-preselection-diso.hash | 1 + hash_refs/ac4-preselection-mux.hash | 1 + scripts/ac4.sh | 21 +++++++++++++++++++++ 4 files changed, 25 insertions(+) create mode 100644 hash_refs/ac4-preselection-dash.hash create mode 100644 hash_refs/ac4-preselection-diso.hash create mode 100644 hash_refs/ac4-preselection-mux.hash diff --git a/hash_refs/ac4-preselection-dash.hash b/hash_refs/ac4-preselection-dash.hash new file mode 100644 index 00000000..3c50de9e --- /dev/null +++ b/hash_refs/ac4-preselection-dash.hash @@ -0,0 +1,2 @@ +?¥—cà “ÛZQº$·Ð +$!Ž� \ No newline at end of file diff --git a/hash_refs/ac4-preselection-diso.hash b/hash_refs/ac4-preselection-diso.hash new file mode 100644 index 00000000..b75eb3f0 --- /dev/null +++ b/hash_refs/ac4-preselection-diso.hash @@ -0,0 +1 @@ +†˜ñÆð‘öW"EÅïOp 8É \ No newline at end of file diff --git a/hash_refs/ac4-preselection-mux.hash b/hash_refs/ac4-preselection-mux.hash new file mode 100644 index 00000000..1602e256 --- /dev/null +++ b/hash_refs/ac4-preselection-mux.hash @@ -0,0 +1 @@ +7#¨ü¿vz5¯'=N^› \ No newline at end of file diff --git a/scripts/ac4.sh b/scripts/ac4.sh index d3be13b8..278c8c8f 100644 --- a/scripts/ac4.sh +++ b/scripts/ac4.sh @@ -49,3 +49,24 @@ do_hash_test "$TEMP_DIR/ac4-crypted_dash1.m4s" "dash-seg-encrypted" fi test_end + + +test_begin "ac4-preselection" + +if [ $test_skip != 1 ] ; then + +mp4file="$TEMP_DIR/pbde.mp4" +tmp="$mp4file.xml" + +# mux with preselection config +do_test "$MP4BOX -add $EXTERNAL_MEDIA_DIR/misc/pbde_2ch.ac4:preselection=$EXTERNAL_MEDIA_DIR/misc/pbde_2ch.ini -new $mp4file" "Mux" +do_hash_test "$mp4file" "mux" + +do_test "$MP4BOX -diso $mp4file -out $tmp" "diso" +do_hash_test "$tmp" "diso" + +do_test "$MP4BOX -dash 4000 -profile ondemand -out $TEMP_DIR/pbde.mpd $mp4file:asID=1" "Dash" +do_hash_test "$TEMP_DIR/pbde.mpd" "dash" + +fi +test_end \ No newline at end of file