From 7255e4334847bac4af8fdd0c9dc622afc84a5dd2 Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Tue, 22 Jun 2004 18:39:02 +0000 Subject: [PATCH] * mp4: fixed width in tkhd. (at least I hope). --- modules/mux/mp4.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/mux/mp4.c b/modules/mux/mp4.c index 18a71873ab..f468d41954 100644 --- a/modules/mux/mp4.c +++ b/modules/mux/mp4.c @@ -1554,8 +1554,7 @@ static bo_t *GetMoovBox( sout_mux_t *p_mux ) if( p_stream->fmt.video.i_aspect > 0 ) { i_width = p_stream->fmt.video.i_aspect * - p_stream->fmt.video.i_height / - VOUT_ASPECT_FACTOR << 16; + (p_stream->fmt.video.i_height << 16) / VOUT_ASPECT_FACTOR; } // width (presentation) bo_add_32be( tkhd, i_width ); -- 2.39.2