Commit 8aa791f0 authored by conrad's avatar conrad

put_ebml_float()


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10299 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e95d2185
...@@ -67,6 +67,14 @@ static void put_ebml_uint(ByteIOContext *pb, unsigned int elementid, uint64_t va ...@@ -67,6 +67,14 @@ static void put_ebml_uint(ByteIOContext *pb, unsigned int elementid, uint64_t va
//static void put_ebml_sint(ByteIOContext *pb, unsigned int elementid, int64_t val) //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, static void put_ebml_binary(ByteIOContext *pb, unsigned int elementid,
const uint8_t *buf, int size) const uint8_t *buf, int size)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment