
Hi 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