[FFmpeg-cvslog] r15015 - trunk/libavformat/utils.c
Diep Ho
DHo
Mon Sep 1 14:29:08 CEST 2008
> -----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.
DHO
More information about the ffmpeg-cvslog
mailing list