mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-07 12:21:17 +00:00
gst/wavparse/gstwavparse.c: Unbreak my previous commit (swapped nominator & denominator). Tim, thanks for spotting.
Original commit message from CVS: * gst/wavparse/gstwavparse.c: (gst_wavparse_stream_headers), (gst_wavparse_stream_data): Unbreak my previous commit (swapped nominator & denominator). Tim, thanks for spotting.
This commit is contained in:
parent
2b6329e390
commit
c0b3a18684
2 changed files with 10 additions and 3 deletions
|
@ -1,3 +1,10 @@
|
|||
2007-03-02 Stefan Kost <ensonic@users.sf.net>
|
||||
|
||||
* gst/wavparse/gstwavparse.c: (gst_wavparse_stream_headers),
|
||||
(gst_wavparse_stream_data):
|
||||
Unbreak my previous commit (swapped nominator & denominator). Tim,
|
||||
thanks for spotting.
|
||||
|
||||
2007-03-02 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* ext/cdio/gstcdiocddasrc.c: (gst_cdio_cdda_src_probe_devices),
|
||||
|
|
|
@ -1280,7 +1280,7 @@ gst_wavparse_stream_headers (GstWavParse * wav)
|
|||
}
|
||||
|
||||
if (wav->bps > 0) {
|
||||
duration = uint64_ceiling_scale_int (wav->datasize, wav->bps, GST_SECOND);
|
||||
duration = uint64_ceiling_scale_int (wav->datasize, GST_SECOND, wav->bps);
|
||||
GST_DEBUG_OBJECT (wav, "Got duration %" GST_TIME_FORMAT,
|
||||
GST_TIME_ARGS (duration));
|
||||
gst_segment_init (&wav->segment, GST_FORMAT_TIME);
|
||||
|
@ -1531,8 +1531,8 @@ iterate_adapter:
|
|||
|
||||
if (wav->bps > 0) {
|
||||
/* and timestamps if we have a bitrate, be carefull for overflows */
|
||||
timestamp = uint64_ceiling_scale_int (pos, wav->bps, GST_SECOND);
|
||||
next_timestamp = uint64_ceiling_scale_int (nextpos, wav->bps, GST_SECOND);
|
||||
timestamp = uint64_ceiling_scale_int (pos, GST_SECOND, wav->bps);
|
||||
next_timestamp = uint64_ceiling_scale_int (nextpos, GST_SECOND, wav->bps);
|
||||
duration = next_timestamp - timestamp;
|
||||
|
||||
/* update current running segment position */
|
||||
|
|
Loading…
Reference in a new issue