From 275e352a2e6e6e05fac8e047985445422c4a6177 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Wed, 18 Aug 2010 11:42:33 +0200 Subject: [PATCH] rtpamrpay: proper duration for multiple frame payload --- gst/rtp/gstrtpamrpay.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gst/rtp/gstrtpamrpay.c b/gst/rtp/gstrtpamrpay.c index a261046fcc..2ade6a757c 100644 --- a/gst/rtp/gstrtpamrpay.c +++ b/gst/rtp/gstrtpamrpay.c @@ -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)) {