diff options
author | Arwed v. Merkatz <v.merkatz@gmx.net> | 2004-08-26 11:10:16 +0000 |
---|---|---|
committer | Arwed v. Merkatz <v.merkatz@gmx.net> | 2004-08-26 11:10:16 +0000 |
commit | 356279a65b463071244ff9d46d014de8446d605d (patch) | |
tree | ba508b3271e32546f8ecb646e22303e9407f0a0e /gst/matroska/ebml-write.c | |
parent | 80badd5a94710428ce0f6950a5c0c0d5ad51130f (diff) |
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.
Diffstat (limited to 'gst/matroska/ebml-write.c')
-rw-r--r-- | gst/matroska/ebml-write.c | 5 |
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 |