changeset 12117:e1e5e2124dae

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
author michael
date Sun, 04 Apr 2004 22:40:48 +0000
parents 8d476d8a16ae
children b8fea9441d02
files DOCS/tech/mpcf.txt
diffstat 1 files changed, 10 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/DOCS/tech/mpcf.txt	Sun Apr 04 17:11:37 2004 +0000
+++ b/DOCS/tech/mpcf.txt	Sun Apr 04 22:40:48 2004 +0000
@@ -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)