Does RtpJ2KHeader comply with RFC 5371

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Does RtpJ2KHeader comply with RFC 5371

boxerab@gmail.com
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








_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Does RtpJ2KHeader comply with RFC 5371

boxerab@gmail.com
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 <[hidden email]> 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









_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel