[vlc-devel] [PATCH] mux:mp4: fix 32 bits written where it should be 64

Steve Lhomme robux4 at ycbcr.xyz
Wed Sep 19 14:37:33 CEST 2018


---
 modules/mux/mp4/libmp4mux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/mux/mp4/libmp4mux.c b/modules/mux/mp4/libmp4mux.c
index 92e7b1fe322..7d4d2fb8ad5 100644
--- a/modules/mux/mp4/libmp4mux.c
+++ b/modules/mux/mp4/libmp4mux.c
@@ -1600,7 +1600,7 @@ bo_t * mp4mux_GetMoovBox(vlc_object_t *p_obj, mp4mux_trackinfo_t **pp_tracks, un
             }
             bo_add_64be(mdhd, i_timestamp);   // creation time
             bo_add_64be(mdhd, i_timestamp);   // modification time
-            bo_add_32be(mdhd, p_stream->i_timescale); // timescale
+            bo_add_64be(mdhd, p_stream->i_timescale); // timescale
             bo_add_64be(mdhd, i_stream_duration * p_stream->i_timescale / i_movie_timescale);  // duration
         }
 
-- 
2.17.0



More information about the vlc-devel mailing list