From 471651b465df9a81912923381a302b99cfb7098b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 14 Jan 2008 11:24:57 +0000 Subject: [PATCH] ext/lame/gstlame.c: Use gst_util_uint64_scale instead of gst_util_uint64_scale_int as 8 * GST_SECOND is too large for... Original commit message from CVS: * ext/lame/gstlame.c: (gst_lame_sink_event): Use gst_util_uint64_scale instead of gst_util_uint64_scale_int as 8 * GST_SECOND is too large for int. --- ChangeLog | 6 ++++++ ext/lame/gstlame.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 723d172..58053f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2008-01-14 Sebastian Dröge + * ext/lame/gstlame.c: (gst_lame_sink_event): + Use gst_util_uint64_scale instead of gst_util_uint64_scale_int + as 8 * GST_SECOND is too large for int. + +2008-01-14 Sebastian Dröge + * gst/mpegaudioparse/gstmpegaudioparse.c: (gst_mp3parse_reset), (gst_mp3parse_emit_frame), (gst_mp3parse_handle_first_frame), (mp3parse_total_bytes), (mp3parse_total_time): diff --git a/ext/lame/gstlame.c b/ext/lame/gstlame.c index cff4add..71576af 100644 --- a/ext/lame/gstlame.c +++ b/ext/lame/gstlame.c @@ -974,7 +974,7 @@ gst_lame_sink_event (GstPad * pad, GstEvent * event) if (size > 0 && lame->last_flow == GST_FLOW_OK) { gint64 duration; - duration = gst_util_uint64_scale_int (size, 8 * GST_SECOND, + duration = gst_util_uint64_scale (size, 8 * GST_SECOND, 1000 * lame->bitrate); if (lame->last_ts == GST_CLOCK_TIME_NONE) { -- 2.7.4