changeset 12242:f67bc1d216a1

file_id_string (idea by ivan) remove 0byte skiped frames (idea by rich) file structure
author michael
date Tue, 20 Apr 2004 23:00:28 +0000
parents bcb8260d93e4
children 56fbb898c223
files DOCS/tech/mpcf.txt
diffstat 1 files changed, 21 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/DOCS/tech/mpcf.txt	Tue Apr 20 22:10:11 2004 +0000
+++ b/DOCS/tech/mpcf.txt	Tue Apr 20 23:00:28 2004 +0000
@@ -201,11 +201,31 @@
 	reserved_bytes
         checksum				u(32)
         
+file
+	file_id_string
+	while(!eof){
+		main_header
+		for(i=0; i<stream_count; i++){
+			if(next_packet==video_stream_header)
+				video_stream_header
+			else
+				audio_stream_header
+		}
+		while(next_packet != main_header){
+			if(next_packet == info_packet)
+				info_packet
+			else
+				frame
+		}
+//FIXME index
+	}
                 
 forward_ptr
 	size of the packet (exactly the distance from the first byte of the
 	startcode of the current packet to the first byte of the following packet
-	Note: a frame with 0 bytes means that its skiped
+
+file_id_string
+	"nut/multimedia container\0"
 
 *_startcode
         all startcodes start with 'N'