GNOME Bugzilla – Bug 348675
RTP timestamps incorrectly generated for G711
Last modified: 2009-08-10 23:14:26 UTC
Please describe the problem: The PCMU and PCMA payloaders incorrectly increase the RTP timestamps in consecutive packets when max-ptime is set. Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Created attachment 69598 [details] [review] Patch that attempts to fix the described problem
Also changed the duration calculation based on incomming buffer size instead of TIMESTAMP (?!?). Used _scale function to avoid overflows. Patch by: Kai Vehmanen <kv2004 at eca dot cx> * gst/rtp/gstrtppcmapay.c: (gst_rtp_pcma_pay_flush), (gst_rtp_pcma_pay_handle_buffer): * gst/rtp/gstrtppcmupay.c: (gst_rtp_pcmu_pay_flush), (gst_rtp_pcmu_pay_handle_buffer): Fix timestamp calculation on outgoing RTP packets. Fixes #348675.