Mercurial > mplayer.hg
changeset 17533:86a9a60ef596
Index repetition
author | ods15 |
---|---|
date | Sat, 04 Feb 2006 08:54:31 +0000 |
parents | 724816ab19be |
children | 13cdba48ff98 |
files | DOCS/tech/mpcf.txt |
diffstat | 1 files changed, 11 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/DOCS/tech/mpcf.txt Sat Feb 04 08:53:43 2006 +0000 +++ b/DOCS/tech/mpcf.txt Sat Feb 04 08:54:31 2006 +0000 @@ -299,7 +299,7 @@ file: file_id_string - while(!eof && next_code != index_startcode){ + while(!eof){ main_header for(i=0; i<stream_count; i++){ if(next_packet==video_stream_header) @@ -312,14 +312,16 @@ while(next_code == info_startcode){ info_packet } - while(next_code != main_startcode){ + if(next_code == index_startcode){ + index + } + if (!eof) while(next_code != main_startcode){ if(next_code == syncpoint_startcode) syncpoint frame } } - if (next_code == index_startcode){ - index + if (has_index){ index_ptr u(64) } @@ -590,7 +592,8 @@ index_ptr Length in bytes from the first byte of the index startcode to the first byte of the index_ptr. If there is no index, index_ptr MUST NOT be - written. + written. If there are several indexes, index_ptr MUST point to the last + index. id the ID of the type/name pair, so it is more compact @@ -692,8 +695,9 @@ ------ Note: with realtime streaming, there is no end, so no index there either -An index SHOULD be written for every stream. Indices MUST be placed at end -of file. Indices MAY be repeated for a stream. +Index MAY only be repeated after main headers. +If an index is written anywhere in the file, it MUST be written at end of +file as well. Info frames: