aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/asf-enc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-01-21 20:06:19 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-01-21 20:06:19 +0000
commit24c14d6d018bb3c4716266d955e75c7952eddf3b (patch)
tree8a47da117afe2eee1dcc57633ab16598db003227 /libavformat/asf-enc.c
parentefbd19fe760edcd71adcf3b60fd23ec3ae259e83 (diff)
downloadffmpeg-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.c9
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);