]> git.sesse.net Git - vlc/commitdiff
* mp4: fixed width in tkhd. (at least I hope).
authorLaurent Aimar <fenrir@videolan.org>
Tue, 22 Jun 2004 18:39:02 +0000 (18:39 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 22 Jun 2004 18:39:02 +0000 (18:39 +0000)
modules/mux/mp4.c

index 18a71873ab152bf859601ea4972434678ae888d4..f468d41954134f969cc7e7d9c0ab265ac80f38a1 100644 (file)
@@ -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 );