diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-01-21 20:06:19 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-01-21 20:06:19 +0000 |
commit | 24c14d6d018bb3c4716266d955e75c7952eddf3b (patch) | |
tree | 8a47da117afe2eee1dcc57633ab16598db003227 /libavformat/asf-enc.c | |
parent | efbd19fe760edcd71adcf3b60fd23ec3ae259e83 (diff) | |
download | ffmpeg-24c14d6d018bb3c4716266d955e75c7952eddf3b.tar.gz |
simplify GUIDs
Originally committed as revision 7611 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/asf-enc.c')
-rw-r--r-- | libavformat/asf-enc.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libavformat/asf-enc.c b/libavformat/asf-enc.c index 811b9da1cf..45f727bf47 100644 --- a/libavformat/asf-enc.c +++ b/libavformat/asf-enc.c @@ -200,13 +200,8 @@ static const uint8_t error_spread_ADPCM_G726[] = { 0x01, 0x90, 0x01, 0x90, 0x01, static void put_guid(ByteIOContext *s, const GUID *g) { - int i; - - put_le32(s, g->v1); - put_le16(s, g->v2); - put_le16(s, g->v3); - for(i=0;i<8;i++) - put_byte(s, g->v4[i]); + assert(sizeof(*g) == 16); + put_buffer(s, g, sizeof(*g)); } static void put_str16_nolen(ByteIOContext *s, const char *tag); |