[FFmpeg-cvslog] r15015 - trunk/libavformat/utils.c

Michael Niedermayer michaelni
Wed Sep 3 01:23:38 CEST 2008


On Mon, Sep 01, 2008 at 02:29:08PM +0200, Diep Ho wrote:
> > -----Original Message-----
> > From: ffmpeg-cvslog-bounces at mplayerhq.hu [mailto:ffmpeg-cvslog-
> > bounces at mplayerhq.hu] On Behalf Of Michael Niedermayer
> > Sent: vendredi 29 ao?t 2008 20:32
> > To: FFmpeg Subversion commit log and discussion
> > Subject: Re: [FFmpeg-cvslog] r15015 - trunk/libavformat/utils.c
> > 
> > On Fri, Aug 29, 2008 at 11:15:24AM -0700, Baptiste Coudurier wrote:
> > > Hi Michael,
> > >
> > > michael wrote:
> > > > Author: michael
> > > > Date: Fri Aug 29 03:43:27 2008
> > > > New Revision: 15015
> > > >
> > > > Log:
> > > > Do not truncate timestamps before the muxer as it makes simple
> > > > things like last_pts - pts rather tricky and is not good for
> > anything.
> > > > Timestamps should be truncated just before storing when needed.
> > > >
> > >
> > > Nice I had the same idea.
> > >
> > > > Modified:
> > > >    trunk/libavformat/utils.c
> > > >
> > > > Modified: trunk/libavformat/utils.c
> > > >
> > =======================================================================
> > =======
> > > > --- trunk/libavformat/utils.c	(original)
> > > > +++ trunk/libavformat/utils.c	Fri Aug 29 03:43:27 2008
> > > > @@ -2574,18 +2574,6 @@ static int compute_pkt_fields2(AVStream
> > > >      return 0;
> > > >  }
> > > >
> > > > -static void truncate_ts(AVStream *st, AVPacket *pkt){
> > > > -    int64_t pts_mask = (2LL << (st->pts_wrap_bits-1)) - 1;
> > > > -
> > >
> > > 'pts_wrap_bits field' is now useless I think. Should we remove it ?
> > 
> > I think it still used by the demuxer side.
> 
> It should be used by the demuxer. But the 33-bit mpeg wrap-over has not been treated properly, resulting in non-monotone timestamps when timestamps jump from large values of about 2^33 to almost 0.

Either i do not understand you or you do not understand the code

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I hate to see young programmers poisoned by the kind of thinking
Ulrich Drepper puts forward since it is simply too narrow -- Roman Shaposhnik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/attachments/20080903/c09fd792/attachment.pgp>



More information about the ffmpeg-cvslog mailing list