[MPlayer-cvslog] CVS: main/DOCS/tech mpcf.txt,1.97,1.98
Oded Shimon CVS
syncmail at mplayerhq.hu
Sat Feb 4 09:54:33 CET 2006
CVS change done by Oded Shimon CVS
Update of /cvsroot/mplayer/main/DOCS/tech
In directory mail:/var2/tmp/cvs-serv3847
Modified Files:
mpcf.txt
Log Message:
Index repetition
Index: mpcf.txt
===================================================================
RCS file: /cvsroot/mplayer/main/DOCS/tech/mpcf.txt,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -r1.97 -r1.98
--- mpcf.txt 4 Feb 2006 08:53:43 -0000 1.97
+++ mpcf.txt 4 Feb 2006 08:54:31 -0000 1.98
@@ -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:
More information about the MPlayer-cvslog
mailing list