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

Michael Niedermayer michaelni
Tue Jul 31 17:02:53 CEST 2007


Hi

On Tue, Jul 31, 2007 at 04:07:44PM +0200, Benoit Fouet wrote:
> michael wrote:
> > Author: michael
> > Date: Mon Jul 30 20:57:47 2007
> > New Revision: 9835
> >
> > Log:
> > kill antiwraping code, i dont think this did anything good
> > fixes decoding of rete4.ps
> > closes issue44
> >
> >
> > Modified:
> >    trunk/libavformat/utils.c
> >
> > Modified: trunk/libavformat/utils.c
> > ==============================================================================
> > --- trunk/libavformat/utils.c	(original)
> > +++ trunk/libavformat/utils.c	Mon Jul 30 20:57:47 2007
> > @@ -589,24 +589,11 @@ static int is_intra_only(AVCodecContext 
> >      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);
> > -    }
> >   
> 
> it seems to break regression tests

fixed
and no i did run the regression tests, make test just did not recompile
seek_test

[...] 

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

it is not once nor twice but times without number that the same ideas make
their appearance in the world. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/attachments/20070731/427a1b70/attachment.pgp>



More information about the ffmpeg-cvslog mailing list