aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ref/fate/gaplessenc-pcm-to-mov-aac
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2020-12-20 00:45:42 +0200
committerMartin Storsjö <martin@martin.st>2021-01-15 15:01:03 +0200
commitc2424b1f35a1c6c06f1f9fe5f77a7157ed84e1cd (patch)
tree69adc27588c6ee103aa2ae9a61c06bbb656ea719 /tests/ref/fate/gaplessenc-pcm-to-mov-aac
parentd4902751cb111d8f66d481d670cad079228e9f73 (diff)
downloadffmpeg-c2424b1f35a1c6c06f1f9fe5f77a7157ed84e1cd.tar.gz
movenc: Present durations in mvhd/tkhd/mdhd as they are after edits
If the edit lists remove parts of the output timeline, or add a delay to it, this should be included in the mvhd/tkhd/mdhd durations, which should correspond to the edit lists. For tracks starting with pts < 0, the edit list trims out the segment before pts=0. For tracks starting with pts > 0, a delay element is added in the edit list, delaying the start of the track data. In both cases, the practical effect is that the post-edit output is as if the track had started with pts = 0. Thus calculate the range from pts=0 to end_pts, for the purposes of mvhd/tkhd/mdhd, unless edit lists explicitly are disabled. mov_write_edts_tag needs to operate on the actual pts duration of the track samples, not the duration that already takes the edit list effect into account. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'tests/ref/fate/gaplessenc-pcm-to-mov-aac')
-rw-r--r--tests/ref/fate/gaplessenc-pcm-to-mov-aac2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ref/fate/gaplessenc-pcm-to-mov-aac b/tests/ref/fate/gaplessenc-pcm-to-mov-aac
index 2b17956e2b..bfd47be10f 100644
--- a/tests/ref/fate/gaplessenc-pcm-to-mov-aac
+++ b/tests/ref/fate/gaplessenc-pcm-to-mov-aac
@@ -5,7 +5,7 @@ duration_ts=529200
[/STREAM]
[FORMAT]
start_time=0.000000
-duration=12.024000
+duration=12.000000
[/FORMAT]
packet|pts=-1024|dts=-1024|duration=1024|flags=KDside_data|