[NUT-devel] [nut]: r619 - docs/nut.txt

Michael Niedermayer michaelni at gmx.at
Wed Feb 13 20:02:30 CET 2008


On Wed, Feb 13, 2008 at 12:55:59PM -0500, Rich Felker wrote:
> On Wed, Feb 13, 2008 at 01:20:31PM +0100, michael wrote:
> > Author: michael
> > Date: Wed Feb 13 13:20:28 2008
> > New Revision: 619
> > 
> > Log:
> > Ensure that match_time_delta[frame_code] fits in 16bit.
> > 
> > 
> > Modified:
> >    docs/nut.txt
> > 
> > Modified: docs/nut.txt
> > ==============================================================================
> > --- docs/nut.txt	(original)
> > +++ docs/nut.txt	Wed Feb 13 13:20:28 2008
> > @@ -678,7 +678,7 @@ coded_pts (v)
> >      delta = last_pts - mask / 2
> >      pts   = ( (pts_lsb - delta) & mask ) + delta
> >  
> > -match_time_delta
> > +match_time_delta (s)
> >      This is the time difference in stream timebase units from the pts at which
> >      the output from the decoder has converged independent from the availability
> >      of previous frames (that is the frames are virtually identical no matter
> > @@ -688,6 +688,11 @@ match_time_delta
> >      A muxer MUST only set it to 1-(1<<62) if it does not know the correct
> >      value. That is, it is not allowed to randomly discard known values.
> >  
> > +match_time_delta[frame_code] (s)
> > +    If FLAG_MATCH_TIME is not set then this value shall be used for
> > +    match_time_delta, otherwise this value is ignored.
> > +    MUST be <32786 and >-32768 or =1-(1<<62)
> > +
> 
> Why?? If the timebase is 1/(1<<30) this is nonsense..

Because the framecode table before match_time_delta fitted in ~2kb
and 64bit match_time_delta would need 2kb extra.

Also the same applies to pts_delta in the framecode table, and even
with more strict limits. I dont see why match_time_delta should be
an exception. Or why we suddenly should endorse the use of 1/(1<<30)
as timebase.
If someone wants to use 1/(1<<30) he will have to code all pts_delta
and match_time_delta in the actual frame headers.

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

I am the wisest man alive, for I know one thing, and that is that I know
nothing. -- Socrates
-------------- 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/nut-devel/attachments/20080213/36ab605c/attachment.pgp>


More information about the NUT-devel mailing list