From 5e39863fca93bb8c74208c11e426b15efd15632d Mon Sep 17 00:00:00 2001 From: Haakon Sporsheim Date: Fri, 7 Sep 2007 18:04:41 +0000 Subject: [PATCH] gst/rtp/gstrtph263pay.c: Fix up header structure so that compilers don't add padding between the structure fields, si... Original commit message from CVS: Patch by: Haakon Sporsheim * gst/rtp/gstrtph263pay.c: Fix up header structure so that compilers don't add padding between the structure fields, since that would lead to us sending RTP packets with broken headers (as is currently the case when compiling with MSVC). Also see similar fixes in libgstrtp in gst-plugins-base. (#474616; #471194) --- ChangeLog | 11 +++++++++++ gst/rtp/gstrtph263pay.c | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ffd4c9d1f3..a3d78f2fb2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2007-09-07 Tim-Philipp Müller + + Patch by: Haakon Sporsheim + + * gst/rtp/gstrtph263pay.c: + Fix up header structure so that compilers don't add padding + between the structure fields, since that would lead to us + sending RTP packets with broken headers (as is currently the + case when compiling with MSVC). Also see similar fixes in + libgstrtp in gst-plugins-base. (#474616; #471194) + 2007-09-07 Wim Taymans * sys/v4l2/v4l2src_calls.c: diff --git a/gst/rtp/gstrtph263pay.c b/gst/rtp/gstrtph263pay.c index 273f4e502e..2e8b87a190 100644 --- a/gst/rtp/gstrtph263pay.c +++ b/gst/rtp/gstrtph263pay.c @@ -66,7 +66,7 @@ typedef struct _GstRFC2190AHeader #else #error "G_BYTE_ORDER should be big or little endian." #endif - guint8 tr; /* Temporal ref for P frame */ + unsigned int tr:8; /* Temporal ref for P frame */ } GstRFC2190AHeader;