Generate error when the rtp payload data is not mulaw audio

Sebastian Dröge sebastian at centricular.com
Mon Apr 8 15:03:02 UTC 2019


On Mon, 2019-04-08 at 01:43 -0500, Rohan0993 wrote:
> 
> I just want to produce an error message(s) that the received data is
> not PCM-MU. It will be great if I can find out whether encoding is
> wrong or the sampling rate is wrong or both are wrong. 
> 
> *How can I do that?* 

You can't as this information is not included in the RTP packets
themselves. For statically assigned payload types (< 96) you could
detect a wrong format based on that, but for dynamic payload types (and
mismatching sampling rate) there's nothing you can really do.

-- 
Sebastian Dröge, Centricular Ltd · https://www.centricular.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190408/b5585884/attachment.sig>


More information about the gstreamer-devel mailing list