diff options
author | Gildas Bazin <gbazi@altern.org> | 2006-01-19 22:30:37 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2006-01-19 22:30:37 +0000 |
commit | 6d276a9e91e5568dfbde5f48c8a465a038659a00 (patch) | |
tree | daeb0881904d336469bbcf47a6bad0046ec6b673 /libavformat/nut.c | |
parent | d3ac6ed667872332efcb8c953bb45cbd125dbaab (diff) | |
download | ffmpeg-6d276a9e91e5568dfbde5f48c8a465a038659a00.tar.gz |
Properly #ifdef muxer-specific parts.
Taken from a patch by Gildas Bazin < gbazin -- @@ -- altern -- . -- org >
Originally committed as revision 4869 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/nut.c')
-rw-r--r-- | libavformat/nut.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavformat/nut.c b/libavformat/nut.c index 8dfb0b5eba..790f9bd910 100644 --- a/libavformat/nut.c +++ b/libavformat/nut.c @@ -394,6 +394,12 @@ static int64_t find_startcode(ByteIOContext *bc, uint64_t code, int64_t pos){ } } +static int64_t lsb2full(StreamContext *stream, int64_t lsb){ + int64_t mask = (1<<stream->msb_timestamp_shift)-1; + int64_t delta= stream->last_pts - mask/2; + return ((lsb - delta)&mask) + delta; +} + #ifdef CONFIG_MUXERS static void put_v(ByteIOContext *bc, uint64_t val) @@ -690,12 +696,6 @@ static int nut_write_header(AVFormatContext *s) return 0; } -static int64_t lsb2full(StreamContext *stream, int64_t lsb){ - int64_t mask = (1<<stream->msb_timestamp_shift)-1; - int64_t delta= stream->last_pts - mask/2; - return ((lsb - delta)&mask) + delta; -} - static int nut_write_packet(AVFormatContext *s, AVPacket *pkt) { NUTContext *nut = s->priv_data; |