[Mplayer-cvslog] CVS: main/DOCS/tech mpcf.txt,1.30,1.31
Alex Beregszaszi
alex at fsn.hu
Sun Sep 7 03:03:37 CEST 2003
Hi,
> > And imho let first discuss the ordering and such, before applying.
> ok
> i suggest that we move the backward size/pointer in the packetheader
> before the forward one, its more intuitive
it's up to you, imho both have it's pro and cons :)
> > Btw, I would remove the stream_count, file_size and length_in_msec
> > fields from the main header. The demuxer should read startcodes and
> > handle all the streamheaders it has found and the
> > file_size/len_in_msec fields could be placed in an optional packet,
> > or in the info packet.
> the stream_count may be usefull for allocating an array of streams
> which some demuxers might do
> but i agree that length_in_msec and file_size fields arent essential
> and should be moved to a info packet
It may be used for calculating avg bitrate, but we have a field for avg
bitrate too. But what does uses these bitrate fields?
Yes, stream_count may be useful, and it doesn't wastes much space.
Attached the nut demuxer in g2 which uses my startcodes.
--
Alex Beregszaszi <alex at fsn.hu>
(MPlayer Core Developer -- http://www.mplayerhq.hu/)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: demux_nut.c
Type: text/x-csrc
Size: 9429 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-cvslog/attachments/20030907/b4121ef0/attachment.c>
More information about the MPlayer-cvslog
mailing list