[MPlayer-dev-eng] NUT cleanup

Rich Felker dalias at aerifal.cx
Wed Sep 7 00:05:24 CEST 2005


On Tue, Sep 06, 2005 at 09:27:55PM +0200, Michael Niedermayer wrote:
> > > 1. check if the 64bit ptr points within the file (check needed no matter how
> > > its stored anyway)
> > > 2. seek there and check if the index_startcode is there (again we need to
> > > check this for all variants anyway)
> > > -> so IMHO the 64bit variant is much simpler
> > 
> > Wait, I still want an end_startcode - to know i've reached EOF if there is 
> > no index... Basically without it you just have 8 last bytes appearing to 
> > you pretending to be a frame...
> 
> hmm, dont store anything, not even the 64bit zero pointer if there is no index, 
> that way you could even append something afterwards

Agree.

> or alternatively, well why not always store a index, it would be more 
> consistant too if valid nut files would always have an index, hmm somehow
> i think ill be flamed soon for the later suggestion :)

Not flames, but I don't think it makes sense. The reason? An
incomplete nut file should always be a valid nut file, IMO. :)

Rich




More information about the MPlayer-dev-eng mailing list