From 6cecdc9916de6a94fa78504943c6aba35d87f268 Mon Sep 17 00:00:00 2001 From: rfelker Date: Fri, 19 Aug 2005 14:30:24 +0000 Subject: [PATCH] 1000000000000000l git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16275 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/tvi_v4l2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmpdemux/tvi_v4l2.c b/libmpdemux/tvi_v4l2.c index 335491f6bc..c34a237402 100644 --- a/libmpdemux/tvi_v4l2.c +++ b/libmpdemux/tvi_v4l2.c @@ -318,7 +318,7 @@ static int amode2v4l(int amode) static void setup_audio_buffer_sizes(priv_t *priv) { int bytes_per_sample = priv->audio_in.bytes_per_sample; - double fps = priv->standard.frameperiod.denominator / + double fps = (double)priv->standard.frameperiod.denominator / priv->standard.frameperiod.numerator; int seconds = priv->video_buffer_size_max/fps;