[NUT-devel] [PATCH] libnut muxer: write at least one timebase

Michael Niedermayer michaelni at gmx.at
Fri Feb 2 11:38:32 CET 2007


On Fri, Feb 02, 2007 at 11:10:32AM +0200, Oded Shimon wrote:
> On Mon, Jan 22, 2007 at 02:24:07PM +0100, Clemens Ladisch wrote:
> > This patch adds code to make sure that there is at least one timebase.
> > Otherwise, creating a file without any stream would result in an
> > invalid file, or the muxer would crash when trying to write max_pts
> > in the index.
> Is a file without any streams valid?..

hmm, i think we havent thought about that ...
at least such a file cannot contain any frames, stream headers or syncpoints
and without timebases it cannot contain an (useless) index and info packets

now the timebase less case really is useless because the only thing which
you could store in the file would be the main header and possibly future
new headers ...

in the streamless but not timebase less case you could store an index which
would contain nothing and info packets iam not sure if theres any use for
that? seperating info packets from actual streams like providing just a
info packet file for some other file, like providing detailed info for
a dvd, so someone could take th dvd remux it to nut and add the info somehow

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

While the State exists there can be no freedom; when there is freedom there
will be no State. -- Vladimir Lenin
-------------- 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/nut-devel/attachments/20070202/0d71a984/attachment.pgp>

More information about the NUT-devel mailing list