diff options
author | Olivier CrĂȘte <tester@tester.ca> | 2009-08-12 12:23:30 -0400 |
---|---|---|
committer | Olivier CrĂȘte <tester@tester.ca> | 2009-08-12 17:35:14 -0400 |
commit | 4f61f46f073a940b7fab47ae165b8816ff74770c (patch) | |
tree | c81e1ab3dcc372f9fd0fb803026dee5e59c66d8e /ext | |
parent | 6001c6b5c0e438b4bab21a2babc0bad6cf6630a9 (diff) | |
download | gst-plugins-bad-4f61f46f073a940b7fab47ae165b8816ff74770c.tar.gz gst-plugins-bad-4f61f46f073a940b7fab47ae165b8816ff74770c.tar.bz2 gst-plugins-bad-4f61f46f073a940b7fab47ae165b8816ff74770c.zip |
mimenc: USE GST_WRITE_*_LE macros
Diffstat (limited to 'ext')
-rw-r--r-- | ext/mimic/gstmimenc.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ext/mimic/gstmimenc.c b/ext/mimic/gstmimenc.c index e9462094..ef60d20d 100644 --- a/ext/mimic/gstmimenc.c +++ b/ext/mimic/gstmimenc.c @@ -378,15 +378,15 @@ gst_mimenc_create_tcp_header (GstMimEnc * mimenc, guint32 payload_size, GST_BUFFER_TIMESTAMP (buf_header) = timestamp; p[0] = 24; - *((guchar *) (p + 1)) = paused ? 1 : 0; - *((guint16 *) (p + 2)) = GUINT16_TO_LE (mimenc->width); - *((guint16 *) (p + 4)) = GUINT16_TO_LE (mimenc->height); - *((guint16 *) (p + 6)) = keyframe ? 1 : 0; - *((guint32 *) (p + 8)) = GUINT32_TO_LE (payload_size); - *((guint32 *) (p + 12)) = paused ? 0 : - GUINT32_TO_LE (GST_MAKE_FOURCC ('M', 'L', '2', '0')); - *((guint32 *) (p + 16)) = 0; - *((guint32 *) (p + 20)) = timestamp / GST_MSECOND; + p[1] = paused ? 1 : 0; + GST_WRITE_UINT16_LE (p + 2, mimenc->width); + GST_WRITE_UINT16_LE (p + 4, mimenc->height); + GST_WRITE_UINT16_LE (p + 6, keyframe ? 1 : 0); + GST_WRITE_UINT32_LE (p + 8, payload_size); + GST_WRITE_UINT16_LE (p + 12, paused ? 0 : + GST_MAKE_FOURCC ('M', 'L', '2', '0')); + GST_WRITE_UINT32_LE (p + 16, 0); + GST_WRITE_UINT32_LE (p + 20, timestamp / GST_MSECOND); return buf_header; } |