[SCM] libav/experimental: put_t()

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:05:14 UTC 2013


The following commit has been merged in the experimental branch:
commit 491216c672723912af6e9647b26097b5b3c72b21
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Thu Aug 9 20:56:42 2007 +0000

    put_t()
    
    Originally committed as revision 10031 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c
index 8475865..3a97b7e 100644
--- a/libavformat/nutenc.c
+++ b/libavformat/nutenc.c
@@ -154,6 +154,12 @@ static void put_v(ByteIOContext *bc, uint64_t val){
     put_byte(bc, val&127);
 }
 
+static void put_t(NUTContext *nut, StreamContext *nus, ByteIOContext *bc, uint64_t val){
+    val *= nut->time_base_count;
+    val += nus->time_base - nut->time_base;
+    put_v(bc, val);
+}
+
 /**
  * stores a string as vb.
  */

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list