Commit 92172d85 authored by Wim Taymans's avatar Wim Taymans
Browse files

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.
parent 737df825
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>
Patch by: Michal Benes <michal dot benes at itonis tv>
......
......@@ -475,12 +475,12 @@ gst_avi_demux_handle_src_query (GstPad * pad, GstQuery * query)
demux->avih->tot_frames * GST_USECOND;
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);
GST_DEBUG_OBJECT (demux, "VBR perc convert frame %u, time %"
GST_TIME_FORMAT, stream->current_frame, GST_TIME_ARGS (pos));
} else {
pos = gst_util_uint64_scale_int (xlen, stream->current_byte,
pos = gst_util_uint64_scale (xlen, stream->current_byte,
stream->total_bytes);
GST_DEBUG_OBJECT (demux, "CBR perc convert bytes %" G_GUINT64_FORMAT
", time %" GST_TIME_FORMAT, stream->current_byte,
......
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