From fffa38ba786165e6c4f3c449ec29e3bdc6be0820 Mon Sep 17 00:00:00 2001 From: Thibaut Mattern Date: Mon, 6 Mar 2006 08:02:44 +0000 Subject: =?UTF-8?q?Fixed=20possible=20FPE.=20patch=20from=20Vedran=20Rodic?= =?UTF-8?q?=20=20and=20Diego=20"Flameeyes"=20Petten?= =?UTF-8?q?=C3=B2=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CVS patchset: 7921 CVS date: 2006/03/06 08:02:44 --- src/demuxers/demux_asf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/demuxers/demux_asf.c b/src/demuxers/demux_asf.c index 583e0daac..132f2caf0 100644 --- a/src/demuxers/demux_asf.c +++ b/src/demuxers/demux_asf.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: demux_asf.c,v 1.173 2005/11/14 12:34:46 valtri Exp $ + * $Id: demux_asf.c,v 1.174 2006/03/06 08:02:44 tmattern Exp $ * * demultiplexer for asf streams * @@ -434,7 +434,7 @@ static int asf_read_header (demux_asf_t *this) { if (this->length) { /* FIXME: the rate is not constant ! */ - this->rate = file_size / (this->length / 1000); + this->rate = (file_size * 1000) / this->length; } else { this->rate = 0; } -- cgit v1.2.3