[FFmpeg-devel] [PATCH] let the packet throught if no timestamps

Michael Niedermayer michaelni
Tue Feb 3 12:04:00 CET 2009


On Mon, Feb 02, 2009 at 07:04:44PM -0800, Baptiste Coudurier wrote:
> Baptiste Coudurier wrote:
> > Michael Niedermayer wrote:
> >> On Mon, Feb 02, 2009 at 03:11:30PM -0800, Baptiste Coudurier wrote:
> >>> Hi,
> >>>
> >>> $subject.
> >> ok assuming you tested it (there could be code that breaks with no
> >> dts at all)
> > 
> > Thanks for the good remark, I believe something like attached is better.
> > 
> > 
> > 
> > ------------------------------------------------------------------------
> > 
> > Index: libavformat/utils.c
> > ===================================================================
> > --- libavformat/utils.c	(revision 16966)
> > +++ libavformat/utils.c	(working copy)
> > @@ -2614,6 +2614,9 @@ int ff_interleave_compare_dts(AVFormatContext *s,
> >      int64_t left = st2->time_base.num * (int64_t)st ->time_base.den;
> >      int64_t right= st ->time_base.num * (int64_t)st2->time_base.den;
> >  
> > +    if (pkt->dts == AV_NOPTS_VALUE)
> > +        return 1;
> > +
> >      return next->dts * left > pkt->dts * right; //FIXME this can overflow
> >  }
> 
> Sorry, I think it should it be return 0. I'm tired :/

patch ok

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

He who knows, does not speak. He who speaks, does not know. -- Lao Tsu
-------------- 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-devel/attachments/20090203/6075b024/attachment.pgp>



More information about the ffmpeg-devel mailing list