changeset 17585:03829916a1c3

Put index_ptr within index to avoid it popping out of nowhere.
author ods15
date Sat, 11 Feb 2006 09:56:49 +0000
parents 187260c06b4f
children 65b39a32a7c4
files DOCS/tech/mpcf.txt
diffstat 1 files changed, 6 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/DOCS/tech/mpcf.txt	Sat Feb 11 09:51:08 2006 +0000
+++ b/DOCS/tech/mpcf.txt	Sat Feb 11 09:56:49 2006 +0000
@@ -265,6 +265,7 @@
         }
     }
     reserved_bytes
+    index_ptr                           u(64)
     checksum                            u(32)
 
 info_frame: (optional)
@@ -325,9 +326,6 @@
             frame
         }
     }
-    if (has_index){
-        index_ptr                       u(64)
-    }
 
 
 Tag description:
@@ -605,10 +603,11 @@
     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