Commit 23fc364a authored by Gildas Bazin's avatar Gildas Bazin

* modules/demux/asf/asf.c: fixed overflow in aspect ratio calculation.

parent 7cddcee8
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment