Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-08-10 00:56:42 +0400
committerMichael Niedermayer <michaelni@gmx.at>2007-08-10 00:56:42 +0400
commit491216c672723912af6e9647b26097b5b3c72b21 (patch)
tree169676ebdac52b9d9154c67ccee6e2d56e45c9af /libavformat/nutenc.c
parent6e6cf116d8b00ce10b54679d36dfcd928629b3bb (diff)
put_t()
Originally committed as revision 10031 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/nutenc.c')
-rw-r--r--libavformat/nutenc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c
index 8475865504..3a97b7e38e 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.
*/