[FFmpeg-soc] [soc]: r249 - matroska/matroskaenc.c
conrad
subversion at mplayerhq.hu
Thu Jun 14 00:40:54 CEST 2007
Author: conrad
Date: Thu Jun 14 00:40:53 2007
New Revision: 249
Log:
put_ebml_float()
Modified:
matroska/matroskaenc.c
Modified: matroska/matroskaenc.c
==============================================================================
--- matroska/matroskaenc.c (original)
+++ matroska/matroskaenc.c Thu Jun 14 00:40:53 2007
@@ -67,6 +67,14 @@ static void put_ebml_uint(ByteIOContext
//static void put_ebml_sint(ByteIOContext *pb, unsigned int elementid, int64_t val)
+static void put_ebml_float(ByteIOContext *pb, unsigned int elementid, double val)
+{
+ // XXX: single-precision floats?
+ put_ebml_id(pb, elementid);
+ put_ebml_size(pb, 8, 0);
+ put_be64(pb, av_dbl2int(val));
+}
+
static void put_ebml_binary(ByteIOContext *pb, unsigned int elementid,
const uint8_t *buf, int size)
{
More information about the FFmpeg-soc
mailing list