OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e18c4d
)
put_ebml_float()
author
David Conrad
<lessen42@gmail.com>
Wed, 5 Sep 2007 00:22:47 +0000
(
00:22
+0000)
committer
David Conrad
<lessen42@gmail.com>
Wed, 5 Sep 2007 00:22:47 +0000
(
00:22
+0000)
Originally committed as revision 10299 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/matroskaenc.c
patch
|
blob
|
history
diff --git
a/libavformat/matroskaenc.c
b/libavformat/matroskaenc.c
index
5f18880
..
0324e35
100644
(file)
--- a/
libavformat/matroskaenc.c
+++ b/
libavformat/matroskaenc.c
@@
-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)
{