From c9a24d8a4049e7a7aceadefb82939f562c0726d9 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 15 Nov 2010 10:44:48 +0100 Subject: [PATCH] Write default duration header field for DTS tracks --- ChangeLog | 5 +++++ src/output/p_dts.cpp | 2 ++ tests/results.txt | 8 ++++---- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 425567790..d28079ecf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-11-15 Moritz Bunkus + + * mkvmerge: new feature: The "default duration" header field is + set for DTS audio tracks. + 2010-11-09 Moritz Bunkus * build system: mmg's guide and its images are installed into the diff --git a/src/output/p_dts.cpp b/src/output/p_dts.cpp index 4db49cbb3..88392660b 100644 --- a/src/output/p_dts.cpp +++ b/src/output/p_dts.cpp @@ -117,6 +117,8 @@ dts_packetizer_c::set_headers() { else set_audio_channels(m_first_header.audio_channels); + set_track_default_duration(get_dts_packet_length_in_nanoseconds(&m_first_header)); + generic_packetizer_c::set_headers(); } diff --git a/tests/results.txt b/tests/results.txt index 176eabfa3..20a7ce223 100644 --- a/tests/results.txt +++ b/tests/results.txt @@ -70,8 +70,8 @@ T_220ass_with_comments_at_start:4aad786f675e15a5efd623cb8d822cff:passed:20060926 T_221aac_lc_misdetected_as_sbr:aec2d52214eb5ff0574cea97df1597d3:passed:20061103-174221:0.021446207 T_222stereo_mode:38e706ff1feab6cfe2c5fe529eb6f81c-81009b5a731256511eafed6401d86089-7d8639113bca1e08bd9636e931e27230:passed:20061107-092251:5.282790646 T_223ra_cook_keyframes:08b7c346362512c20bb0eb3ab4b5756c:passed:20061228-150947:4.592656226 -T_224dts:4176a89cd9f180714427035c9fe1cb2a-84a30457a8a31489a547ee36d52e76ba:passed:20070206-174735:3.294211551 -T_225dts_in_wav:0b26802a12ee0275a2f32854d9bc6201-147c9e0f4995b660fdb0b90de23a1135:passed:20070206-174726:5.474995493 +T_224dts:82f463460ce940e845084511b7308445-c2e94ffc5db0b5e9ff80cd9df6991d01:passed:20070206-174735:3.294211551 +T_225dts_in_wav:c4dd95c4c03612f468761b4b376e0b20-bb4c0ecc736bf7858f4db724f6a5afce:passed:20070206-174726:5.474995493 T_226h264:2044e2d64ddee46460e5d6e0c527688c:passed:20070208-103558:13.467231328 T_227h264_with_garbage:0ba950c5aca41d5326104f5da4b01fbe:passed:20070208-103656:14.242252439 T_228h264_no_idr_slices:2522c46ab5190b0ad81265a648797922:passed:20070426-103130:8.717134522 @@ -81,12 +81,12 @@ T_231X_ac3_header_removal:6ca341797c5f93e273c8502f4d6f4fba:passed:20070623-11124 T_232h264_changing_sps_pps:f929032aa423b3f92bd3e9b48daea54b:passed:20070815-211934:12.174032371 T_233srt_with_coordinates:4275c20e70d4249f3c82e9413b3efc51:passed:20070819-203105:0.397343706 T_234avi_aac_codecid_0x706d:096f5c7b313ecd397365a64f61c4f8cf:passed:20080223-174500:3.42145391 -T_235wav_fmt_chunk_length:2c8540c996452f4158351407f361dc87:passed:20080226-134540:0.424195517 +T_235wav_fmt_chunk_length:58e88ff49d74655d05926eb88e43fcb8:passed:20080226-134540:0.424195517 T_236ac3_in_mov:93a79cc58b08e2fbeae0814d8de2fecd:passed:20080229-103912:0.075465398 T_237ac3_in_wav_iec61937_mode:c041c6953a96568d1e2b8da91622ae6c:passed:20080229-152103:0.296750854 T_238ac3_in_wav_acm_mode:cca52e26a2a6f99788ff2dc21f7f55de:passed:20080229-152339:0.056312684 T_239aac_with_id3_tags:824c4982dcfc3f17c4596002efb8b74b:passed:20080309-170151:0.121431245 -T_240dts_hd:3bbe964f1dd6362a9ec0ea5924e1421e-de6f6ea815b2b013a31d1523ca03b4fb:passed:20080309-170749:2.569312073 +T_240dts_hd:15ba09ebca5f08531b86fb667cb6c01f-0aa1f21da75bddd0e477e1f714d8ef6c:passed:20080309-170749:2.569312073 T_241ac3_with_id3_tags:c041c6953a96568d1e2b8da91622ae6c:passed:20080309-183547:0.163947712 T_242ogm_with_chapters:1b4b6f4597ddfaadfb6c515312f360e3:passed:20080420-204932:0.049524344 T_243avi_with_audio_garbage:51d92ef2c25440bfb1c592e82cba08bb:passed:20080913-185346:0.19121142