Generate error when the rtp payload data is not mulaw audio

Nicolas Dufresne nicolas at ndufresne.ca
Tue Apr 9 15:11:31 UTC 2019


Le mardi 09 avril 2019 à 12:25 +0300, Sebastian Dröge a écrit :
> On Tue, 2019-04-09 at 04:07 -0500, Rohan0993 wrote:
> > Sebastian Dröge-3 wrote
> > > For statically assigned payload types (< 96) you could
> > > detect a wrong format based on that
> > 
> > Thanks for the reply,
> > 
> > how can I do that? I have tried changing the payload type to 0 (for Mulaw)
> > at my receiving pipeline. But it didn't work The pipelines simply worked and
> > depayloaded garbage data in the filesink file.
> 
> You need to add code somewhere that checks for the payload type field.
> The depayloaders don't care about it.

We could add a check in the base class to check that the PT in the
packet matches the provided caps if it's not already the case. That
will only improve strictness for static PT of course, might raise
issues in your template too (which would be nice).

> 
> You could for example add something in a pad probe before the
> depayloader.
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list