From 356279a65b463071244ff9d46d014de8446d605d Mon Sep 17 00:00:00 2001 From: "Arwed v. Merkatz" Date: Thu, 26 Aug 2004 11:10:16 +0000 Subject: Fix byte order reversion for writing ebml floats. Original commit message from CVS: Fix byte order reversion for writing ebml floats. Write segment duration and muxing application in matroska. Added TTA codec to the list of supported codecs to mux into matroska. --- gst/matroska/ebml-write.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gst/matroska/ebml-write.c') 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 -- cgit