summaryrefslogtreecommitdiffstats
path: root/gst/matroska/ebml-write.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/matroska/ebml-write.c')
-rw-r--r--gst/matroska/ebml-write.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/matroska/ebml-write.c b/gst/matroska/ebml-write.c
index e59c5a49..30a9c420 100644
--- a/gst/matroska/ebml-write.c
+++ b/gst/matroska/ebml-write.c
@@ -402,9 +402,10 @@ gst_ebml_write_float (GstEbmlWrite * ebml, guint32 id, gdouble num)
gst_ebml_write_element_id (buf, id);
gst_ebml_write_element_size (buf, 8);
#if (G_BYTE_ORDER == G_LITTLE_ENDIAN)
- for (n = 0; n < 8; n++)
+ for (n = 0; n < 8; n++) {
GST_BUFFER_DATA (buf)[GST_BUFFER_SIZE (buf)] = ((guint8 *) & num)[7 - n];
- GST_BUFFER_SIZE (buf) += 8;
+ GST_BUFFER_SIZE (buf) += 1;
+ }
#else
gst_ebml_write_element_data (buf, (guint8 *) & num, 8);
#endif