diff options
author | Stefan Kost <ensonic@users.sourceforge.net> | 2007-03-02 21:01:19 +0000 |
---|---|---|
committer | Stefan Kost <ensonic@users.sourceforge.net> | 2007-03-02 21:01:19 +0000 |
commit | c0b3a18684f5f5e0fe14944fe951f04ea2cec616 (patch) | |
tree | 967f37f8b0875afe53dfb7c8a972a65c7927eb6d /gst/wavparse/gstwavparse.c | |
parent | 2b6329e390620f9a4a7f05f45a7985aad747ebed (diff) |
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.
Diffstat (limited to 'gst/wavparse/gstwavparse.c')
-rw-r--r-- | gst/wavparse/gstwavparse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/wavparse/gstwavparse.c b/gst/wavparse/gstwavparse.c index cea8a66d..ade334a8 100644 --- a/gst/wavparse/gstwavparse.c +++ b/gst/wavparse/gstwavparse.c @@ -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 */ |