[SCM] libav/experimental: put_ebml_float()

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:06:20 UTC 2013


The following commit has been merged in the experimental branch:
commit 9b6b0c792615a76bf5b4f215ac083c1d41c47ec2
Author: David Conrad <lessen42 at gmail.com>
Date:   Wed Sep 5 00:22:47 2007 +0000

    put_ebml_float()
    
    Originally committed as revision 10299 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 5f18880..0324e35 100644
--- 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)
 {

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list