[MPlayer-DOCS] CVS: main/DOCS/tech mpcf.txt,1.39,1.40

Michael Niedermayer CVS syncmail at mplayerhq.hu
Mon Apr 5 00:40:50 CEST 2004


CVS change done by Michael Niedermayer CVS

Update of /cvsroot/mplayer/main/DOCS/tech
In directory mail:/var2/tmp/cvs-serv7527

Modified Files:
	mpcf.txt 
Log Message:
minor changes
 rename b -> vb, so 'v' is the vlc, 'b' is simply a series of bytes and 'vb' is the length as vlc + the bytes
 encode the fourcc & language code as v instead of vb, this is much simpler in practice, at least in lavf as the fourcc is an int there


Index: mpcf.txt
===================================================================
RCS file: /cvsroot/mplayer/main/DOCS/tech/mpcf.txt,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- mpcf.txt	3 Apr 2004 13:23:44 -0000	1.39
+++ mpcf.txt	4 Apr 2004 22:40:48 -0000	1.40
@@ -54,13 +54,15 @@
 	else       value=  (temp>>1)
 
 b (binary data or string)
-	length					v
 	for(i=0; i<length; i++){
 		data[i]				u(8)
 	}
 	Note: strings MUST be encoded in utf8
 
-        
+vb
+	length					v
+	value					b
+
 f(x)	n fixed bits in big endian order
 u(x)	unsigned number encoded in x bits in MSB first order
 
@@ -113,9 +115,9 @@
 	packet_header
 	stream_id				v
 	stream_class				v
-	fourcc					b
+	fourcc					v
 	average_bitrate				v
-	language_code				b
+	language_code				v
 	time_base_nom				v
 	time_base_denom				v
 	msb_timestamp_shift			v
@@ -127,8 +129,7 @@
 	for(;;){
 		codec_specific_data_type	v
 		if(codec_specific_data_type==0) break;
-		codec_specific_data_size	v
-		codec_specific_data		b
+		codec_specific_data		vb
 	}
 
 video_stream_header:
@@ -195,15 +196,13 @@
 		name= info_table[id][0]
 		type= info_table[id][1]
 		if(type==NULL)
-			type			b
+			type			vb
 		if(name==NULL)
-			name			b
+			name			vb
 		if(type=="v")
 			value			v
-		else if(type=="s")
-			value			s
 		else
-			value			b
+			value			vb
 	}
 	reserved_bytes
         checksum				u(32)




More information about the MPlayer-DOCS mailing list