[x264-devel] commit: Fix slightly wrong mp4 duration. (Yusuke Nakamura )
git at videolan.org
git at videolan.org
Sun Mar 28 04:44:24 CEST 2010
x264 | branch: master | Yusuke Nakamura <muken.the.vfrmaniac at gmail.com> | Sat Mar 6 19:25:30 2010 +0900| [d84a1a95f4db132a374d550c98fa85e00075e7a8] | committer: Jason Garrett-Glaser
Fix slightly wrong mp4 duration.
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=d84a1a95f4db132a374d550c98fa85e00075e7a8
---
output/mp4.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/output/mp4.c b/output/mp4.c
index 548868a..dfe6943 100644
--- a/output/mp4.c
+++ b/output/mp4.c
@@ -122,7 +122,7 @@ static int close_file( hnd_t handle, int64_t largest_pts, int64_t second_largest
* So, if mdhd duration is equal to the last DTS or less, we give the last composition time delta to the last sample duration.
* And then, the mdhd duration is updated, but it time-wise doesn't give the actual duration.
* The tkhd duration is the actual track duration. */
- uint64_t mdhd_duration = (2 * largest_pts - second_largest_pts - p_mp4->i_delay_time) * p_mp4->i_time_inc;
+ uint64_t mdhd_duration = (2 * largest_pts - second_largest_pts) * p_mp4->i_time_inc;
if( mdhd_duration != gf_isom_get_media_duration( p_mp4->p_file, p_mp4->i_track ) )
{
uint64_t last_dts = gf_isom_get_sample_dts( p_mp4->p_file, p_mp4->i_track, p_mp4->i_numframe );
More information about the x264-devel
mailing list