comparison asf-enc.c @ 1687:39cafa2f6060 libavformat

simplify GUIDs
author michael
date Sun, 21 Jan 2007 20:06:19 +0000
parents 91da722e7423
children cb8b538021cd
comparison
equal deleted inserted replaced
1686:91da722e7423 1687:39cafa2f6060
198 198
199 static const uint8_t error_spread_ADPCM_G726[] = { 0x01, 0x90, 0x01, 0x90, 0x01, 0x01, 0x00, 0x00 }; 199 static const uint8_t error_spread_ADPCM_G726[] = { 0x01, 0x90, 0x01, 0x90, 0x01, 0x01, 0x00, 0x00 };
200 200
201 static void put_guid(ByteIOContext *s, const GUID *g) 201 static void put_guid(ByteIOContext *s, const GUID *g)
202 { 202 {
203 int i; 203 assert(sizeof(*g) == 16);
204 204 put_buffer(s, g, sizeof(*g));
205 put_le32(s, g->v1);
206 put_le16(s, g->v2);
207 put_le16(s, g->v3);
208 for(i=0;i<8;i++)
209 put_byte(s, g->v4[i]);
210 } 205 }
211 206
212 static void put_str16_nolen(ByteIOContext *s, const char *tag); 207 static void put_str16_nolen(ByteIOContext *s, const char *tag);
213 static void put_str16(ByteIOContext *s, const char *tag) 208 static void put_str16(ByteIOContext *s, const char *tag)
214 { 209 {