changeset 2342:dfb3b2cff096 libavformat

put_t()
author michael
date Thu, 09 Aug 2007 20:56:42 +0000
parents d88cab1f155d
children c6a7a89a0cef
files nutenc.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/nutenc.c	Thu Aug 09 20:55:09 2007 +0000
+++ b/nutenc.c	Thu Aug 09 20:56:42 2007 +0000
@@ -154,6 +154,12 @@
     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.
  */