[vlc-devel] [PATCH] mux:mp4: fix 32 bits written where it should be 64
Francois Cartegnie
fcvlcdev at free.fr
Mon Oct 1 13:35:11 CEST 2018
Le 19/09/2018 à 14:37, Steve Lhomme a écrit :
> ---
> 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
> }
>
>
timescale is always 32
--
Francois Cartegnie
VideoLAN - VLC Developer
More information about the vlc-devel
mailing list