gst/rtp/gstrtph263pay.c: Fix up header structure so that compilers don't add padding...
authorHaakon Sporsheim <haakon.sporsheim@tandberg.com>
Fri, 7 Sep 2007 18:04:41 +0000 (18:04 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Fri, 7 Sep 2007 18:04:41 +0000 (18:04 +0000)
Original commit message from CVS:
Patch by: Haakon Sporsheim  <haakon.sporsheim at tandberg com>
* 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
gst/rtp/gstrtph263pay.c

index ffd4c9d..a3d78f2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2007-09-07  Tim-Philipp Müller  <tim at centricular dot net>
+
+       Patch by: Haakon Sporsheim  <haakon.sporsheim at tandberg com>
+
+       * 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  <wim.taymans@gmail.com>
 
        * sys/v4l2/v4l2src_calls.c:
index 273f4e5..2e8b87a 100644 (file)
@@ -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;