qtmux: fix flags_as_uint to flags[]
authorMarc-André Lureau <mlureau@flumotion.com>
Tue, 29 Sep 2009 13:47:13 +0000 (15:47 +0200)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 12 Apr 2011 19:32:13 +0000 (20:32 +0100)
gst/quicktime/atoms.c

index ad3e010..838b50f 100644 (file)
@@ -1098,8 +1098,8 @@ atom_tag_new (guint32 fourcc, guint32 flags_as_uint)
   tag->header.type = fourcc;
   atom_tag_data_init (&tag->data);
   tag->data.header.flags[2] = flags_as_uint & 0xFF;
-  tag->data.header.flags[1] = flags_as_uint & 0xFF00;
-  tag->data.header.flags[0] = flags_as_uint & 0xFF0000;
+  tag->data.header.flags[1] = (flags_as_uint & 0xFF00) >> 8;
+  tag->data.header.flags[0] = (flags_as_uint & 0xFF0000) >> 16;
   return tag;
 }