[FFmpeg-devel] [RFC][PATCH] Windows Television (WTV) file system handling

Michael Niedermayer michaelni
Tue Jan 11 00:33:59 CET 2011

On Sun, Jan 09, 2011 at 05:21:20PM +1100, Peter Ross wrote:
> Hi,
> The Windows Television (WTV) file format is a more complex beast than
> initially imagined.
> WTV is best viewed as a file system. Metadata, seek index tables, and
> chunked data are stored in separate files within. The fileystem uses
> a simple hierarchical file allocation table, with standard (4k) and big
> (256k) sector sizes. Standard FAT concepts apply, like fragmentation
> and the existence of slack space.
> The current WTV demuxer is not aware of the file system, and therefore
> only works on smalls wtv samples (<600MiB) where the files are not
> fragmented. Most WTV recordings are much larger. e.g. a 3hr HD recording
> of the tennis results in a 24GiB file and lots of fragmentation.
> Due to the complexity, I would really appreciate comments on the patch,
> especially my use of ByteIOContext.

Which part of the ByteIOContext use do you want comments about?

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Its not that you shouldnt use gotos but rather that you should write
readable code and code with gotos often but not always is less readable
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110111/ea1d604d/attachment.pgp>

More information about the ffmpeg-devel mailing list