summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <mlureau@flumotion.com>2009-09-29 13:47:13 (GMT)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2009-09-30 14:53:20 (GMT)
commit1adfafbe2cd0af7a8b1e03da8f68a63d8c102b28 (patch)
tree7e4b2de2a9334f223680ea471e1b417452f606bd
parentd96defb1645a0d6b34d38fb0c598d7c8f033bb98 (diff)
qtmux: fix flags_as_uint to flags[]
-rw-r--r--gst/qtmux/atoms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/qtmux/atoms.c b/gst/qtmux/atoms.c
index ad3e010..838b50f 100644
--- a/gst/qtmux/atoms.c
+++ b/gst/qtmux/atoms.c
@@ -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;
}