mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +00:00
Add duration field support to mad - thanks to Joshua
Original commit message from CVS: Add duration field support to mad - thanks to Joshua
This commit is contained in:
parent
264e1f15e2
commit
ef073e6ce2
1 changed files with 2 additions and 2 deletions
|
@ -1268,8 +1268,8 @@ gst_mad_chain (GstPad *pad, GstBuffer *buffer)
|
|||
}
|
||||
time_offset = mad->total_samples * GST_SECOND
|
||||
/ mad->frame.header.samplerate;
|
||||
time_duration = ((mad->total_samples + nsamples) * GST_SECOND
|
||||
/ mad->frame.header.samplerate) - time_offset;
|
||||
time_duration = (nsamples * GST_SECOND
|
||||
/ mad->frame.header.samplerate);
|
||||
}
|
||||
|
||||
if (mad->index) {
|
||||
|
|
Loading…
Reference in a new issue