]> git.sesse.net Git - vlc/commitdiff
* modules/demux/asf/asf.c: fixed overflow in aspect ratio calculation.
authorGildas Bazin <gbazin@videolan.org>
Tue, 14 Sep 2004 11:38:50 +0000 (11:38 +0000)
committerGildas Bazin <gbazin@videolan.org>
Tue, 14 Sep 2004 11:38:50 +0000 (11:38 +0000)
modules/demux/asf/asf.c

index 08a8b5fefb9ef0b3712b0b63189f829f2ee5ae27..20e384a2b38e3e91975b7917bc565b3385d86b78 100644 (file)
@@ -730,10 +730,10 @@ static int DemuxInit( demux_t *p_demux )
 
                 if( i_aspect_x && i_aspect_y )
                 {
-                    fmt.video.i_aspect = i_aspect_x * fmt.video.i_width *
-                        VOUT_ASPECT_FACTOR /
-                        (int64_t)fmt.video.i_height / i_aspect_y;
-               }
+                    fmt.video.i_aspect = i_aspect_x *
+                        (int64_t)fmt.video.i_width * VOUT_ASPECT_FACTOR /
+                        fmt.video.i_height / i_aspect_y;
+                }
            }
 
             tk->i_cat = VIDEO_ES;