gst/avi/gstavidemux.c: Use higher precision scale function.

Original commit message from CVS:
* gst/avi/gstavidemux.c: (gst_avi_demux_handle_src_query):
Use higher precision scale function.
This commit is contained in:
Wim Taymans 2006-10-31 09:29:36 +00:00
parent 737df8258b
commit 92172d85bb
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2006-10-31 Wim Taymans <wim@fluendo.com>
* gst/avi/gstavidemux.c: (gst_avi_demux_handle_src_query):
Use higher precision scale function.
2006-10-30 Tim-Philipp Müller <tim at centricular dot net> 2006-10-30 Tim-Philipp Müller <tim at centricular dot net>
Patch by: Michal Benes <michal dot benes at itonis tv> Patch by: Michal Benes <michal dot benes at itonis tv>

View file

@ -475,12 +475,12 @@ gst_avi_demux_handle_src_query (GstPad * pad, GstQuery * query)
demux->avih->tot_frames * GST_USECOND; demux->avih->tot_frames * GST_USECOND;
if (stream->is_vbr) { if (stream->is_vbr) {
pos = gst_util_uint64_scale_int (xlen, stream->current_frame, pos = gst_util_uint64_scale (xlen, stream->current_frame,
stream->total_frames); stream->total_frames);
GST_DEBUG_OBJECT (demux, "VBR perc convert frame %u, time %" GST_DEBUG_OBJECT (demux, "VBR perc convert frame %u, time %"
GST_TIME_FORMAT, stream->current_frame, GST_TIME_ARGS (pos)); GST_TIME_FORMAT, stream->current_frame, GST_TIME_ARGS (pos));
} else { } else {
pos = gst_util_uint64_scale_int (xlen, stream->current_byte, pos = gst_util_uint64_scale (xlen, stream->current_byte,
stream->total_bytes); stream->total_bytes);
GST_DEBUG_OBJECT (demux, "CBR perc convert bytes %" G_GUINT64_FORMAT GST_DEBUG_OBJECT (demux, "CBR perc convert bytes %" G_GUINT64_FORMAT
", time %" GST_TIME_FORMAT, stream->current_byte, ", time %" GST_TIME_FORMAT, stream->current_byte,