Does RtpJ2KHeader comply with RFC 5371

Aaron Boxer boxerab at gmail.com
Wed May 4 15:33:46 UTC 2016


Never mind :)  The struct gets padded with reserved byte before being sent
over the wire.

On Wed, May 4, 2016 at 11:13 AM, Aaron Boxer <boxerab at gmail.com> wrote:

> The Gstreamer struct for the J2K over RTP header is:
>
> typedef struct
> {
>     guint tp : 2;
>     guint MHF : 2;
>     guint mh_id : 3;
>     guint T : 1;
>     guint priority : 8;
>     guint tile : 16;
>     guint offset : 24;
> } RtpJ2KHeader;
>
>
> but RFC 5371 states that there is a reserved 8 bits between tile and
> offfset.
>
> (https://www.packetizer.com/rfc/rfc5371/)
>
> Am I missing something here, or is RtpJ2KHeader a 7 byte struct missing
> the reserved 8 bits ?
>
> Thanks,
> Aaron
>
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160504/c1b981b6/attachment.html>


More information about the gstreamer-devel mailing list