From 8d1e356de17d602ee2a2388f63f8d93346cc8711 Mon Sep 17 00:00:00 2001 From: ods15 Date: Sat, 11 Feb 2006 09:56:49 +0000 Subject: Put index_ptr within index to avoid it popping out of nowhere. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17586 b3059339-0415-0410-9bf9-f77b7e298cf2 --- DOCS/tech/mpcf.txt | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'DOCS') diff --git a/DOCS/tech/mpcf.txt b/DOCS/tech/mpcf.txt index 6ce7e6cb07..49b919c6b9 100644 --- a/DOCS/tech/mpcf.txt +++ b/DOCS/tech/mpcf.txt @@ -265,6 +265,7 @@ index: } } reserved_bytes + index_ptr u(64) checksum u(32) info_frame: (optional) @@ -325,9 +326,6 @@ file: frame } } - if (has_index){ - index_ptr u(64) - } Tag description: @@ -605,10 +603,11 @@ eor_pts that EOR. EOR is unset by the first keyframe after it. 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. If there are several indexes, index_ptr MUST point to the last - index. + Length in bytes of the entire index, from the first byte of the + startcode until the last byte of the checksum. + Note: A demuxer can use this to find the index when it is written at + EOF, as index_ptr will always be 12 bytes before the end of file if + there is an index at all. id the ID of the type/name pair, so it is more compact -- cgit v1.2.3