mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
put_ebml_float()
Originally committed as revision 10299 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
1e18c4d097
commit
9b6b0c7926
@ -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_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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user