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

Michael Niedermayer michaelni
Fri Aug 29 20:32:22 CEST 2008


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.

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
-------------- 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/20080829/8cc7509d/attachment.pgp>



More information about the ffmpeg-cvslog mailing list