summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-04-04 22:40:48 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-04-04 22:40:48 +0000
commite4863392647e884f341b87c6bf8615933292486e (patch)
tree754f621f2b98c83454c259b6193c74cc86058fad /DOCS
parent4aa516cab3c384d239b7cc67c3db340d2ce86078 (diff)
downloadmpv-e4863392647e884f341b87c6bf8615933292486e.tar.bz2
mpv-e4863392647e884f341b87c6bf8615933292486e.tar.xz
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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12118 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/tech/mpcf.txt21
1 files changed, 10 insertions, 11 deletions
diff --git a/DOCS/tech/mpcf.txt b/DOCS/tech/mpcf.txt
index 275d42c4a0..9d14f73836 100644
--- a/DOCS/tech/mpcf.txt
+++ b/DOCS/tech/mpcf.txt
@@ -54,13 +54,15 @@ s
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 @@ stream_header:
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 @@ stream_header:
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 @@ info_packet: (optional)
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)