Mercurial > libavformat.hg
changeset 2294:80a123ce1501 libavformat
kill antiwrapping code, i do not think this did anything good
fixes decoding of rete4.ps
closes issue44
author | michael |
---|---|
date | Mon, 30 Jul 2007 18:57:47 +0000 |
parents | 9aea08e128f9 |
children | 09176aa7014c |
files | utils.c |
diffstat | 1 files changed, 0 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Mon Jul 30 10:00:42 2007 +0000 +++ b/utils.c Mon Jul 30 18:57:47 2007 +0000 @@ -589,24 +589,11 @@ return 0; } -static int64_t lsb2full(int64_t lsb, int64_t last_ts, int lsb_bits){ - int64_t mask = lsb_bits < 64 ? (1LL<<lsb_bits)-1 : -1LL; - int64_t delta= last_ts - mask/2; - return ((lsb - delta)&mask) + delta; -} - static void compute_pkt_fields(AVFormatContext *s, AVStream *st, AVCodecParserContext *pc, AVPacket *pkt) { int num, den, presentation_delayed, delay, i; int64_t offset; - /* handle wrapping */ - if(st->cur_dts != AV_NOPTS_VALUE){ - if(pkt->pts != AV_NOPTS_VALUE) - pkt->pts= lsb2full(pkt->pts, st->cur_dts, st->pts_wrap_bits); - if(pkt->dts != AV_NOPTS_VALUE) - pkt->dts= lsb2full(pkt->dts, st->cur_dts, st->pts_wrap_bits); - } if (pkt->duration == 0) { compute_frame_duration(&num, &den, st, pc, pkt);