Mercurial > libavformat.hg
diff nut.c @ 902:5d1bcf01ce28 libavformat
Properly #ifdef muxer-specific parts.
Taken from a patch by Gildas Bazin < gbazin -- @@ -- altern -- . -- org >
| author | diego |
|---|---|
| date | Thu, 19 Jan 2006 22:30:37 +0000 |
| parents | edbe5c3717f9 |
| children | d2e5dfdf4def |
line wrap: on
line diff
--- a/nut.c Thu Jan 19 00:54:10 2006 +0000 +++ b/nut.c Thu Jan 19 22:30:37 2006 +0000 @@ -394,6 +394,12 @@ } } +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 @@ 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;
