[gst-devel] gstreamer endianess

Wim Taymans wim.taymans at gmail.com
Tue May 20 18:37:37 CEST 2008


On Tue, 2008-05-20 at 18:17 +0200, Mattias Barthel wrote:
> Wim Taymans wrote:
> >>
> >> Using header and then ident. The ident variable is not being well 
> >> understood if I dont place a ntohl call on the Intel machine.
> >>     
> >
> > All RTP headers are big endian and from looking at the theora payloader
> > code it seems that those are indeed generated as big endian (maybe that
> > explains why a ntohl is needed on the intel machine). What depayloader
> > are you using?
> >   
> Im using rtptheorapay.
> If the integers are coming in big endian byte order, how can that even 
> be expected to work
> without a ntohl?
> I am confused.

The receiver is responsible for unpacking the values from the RTP
headers and storing them in the native endianness of the CPU, which
might involve byte swapping. gstrtptheoradepay, for example, does that. 

Wim

> 
> Mattias
> >   
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft 
> Defy all challenges. Microsoft(R) Visual Studio 2008. 
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list