mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
rtpamrpay: proper duration for multiple frame payload
This commit is contained in:
parent
f5bbc56745
commit
275e352a2e
1 changed files with 1 additions and 2 deletions
|
@ -262,11 +262,10 @@ gst_rtp_amr_pay_handle_buffer (GstBaseRTPPayload * basepayload,
|
|||
/* copy timestamp */
|
||||
GST_BUFFER_TIMESTAMP (outbuf) = timestamp;
|
||||
|
||||
/* FIXME: when we do more than one AMR frame per packet, fix this */
|
||||
if (duration != GST_CLOCK_TIME_NONE)
|
||||
GST_BUFFER_DURATION (outbuf) = duration;
|
||||
else {
|
||||
GST_BUFFER_DURATION (outbuf) = 20 * GST_MSECOND;
|
||||
GST_BUFFER_DURATION (outbuf) = num_packets * 20 * GST_MSECOND;
|
||||
}
|
||||
|
||||
if (GST_BUFFER_IS_DISCONT (buffer)) {
|
||||
|
|
Loading…
Reference in a new issue