mirror of
https://github.com/mpv-player/mpv
synced 2024-12-16 03:45:23 +00:00
more cosmetics
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17641 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
01856feb63
commit
db8d9b1dc2
@ -179,27 +179,17 @@ stream_header:
|
||||
fixed_fps u(1)
|
||||
reserved u(7)
|
||||
codec_specific_data vb
|
||||
|
||||
video_stream_header:
|
||||
stream_header
|
||||
width v
|
||||
height v
|
||||
sample_width v
|
||||
sample_height v
|
||||
colorspace_type v
|
||||
reserved_bytes
|
||||
checksum u(32)
|
||||
|
||||
audio_stream_header:
|
||||
stream_header
|
||||
samplerate_nom v
|
||||
samplerate_denom v
|
||||
channel_count v
|
||||
reserved_bytes
|
||||
checksum u(32)
|
||||
|
||||
other_stream_header:
|
||||
stream_header
|
||||
if(stream_class == video){
|
||||
width v
|
||||
height v
|
||||
sample_width v
|
||||
sample_height v
|
||||
colorspace_type v
|
||||
}else if(stream_class == audio){
|
||||
samplerate_nom v
|
||||
samplerate_denom v
|
||||
channel_count v
|
||||
}
|
||||
reserved_bytes
|
||||
checksum u(32)
|
||||
|
||||
@ -310,12 +300,7 @@ file:
|
||||
while(!eof){
|
||||
main_header
|
||||
for(i=0; i<stream_count; i++){
|
||||
if(next_packet==video_stream_header)
|
||||
video_stream_header
|
||||
else if(next_packet==audio_stream_header)
|
||||
audio_stream_header
|
||||
else
|
||||
other_stream_header
|
||||
stream_header
|
||||
}
|
||||
while(next_code == info_startcode){
|
||||
info_packet
|
||||
@ -500,6 +485,9 @@ data_size_lsb[frame_code]
|
||||
pts_delta[frame_code]
|
||||
must be <16384 and >-16384
|
||||
|
||||
reserved_count[frame_code]
|
||||
must be <256
|
||||
|
||||
data_size
|
||||
data_size= data_size_lsb + data_size_msb*data_size_mul;
|
||||
|
||||
@ -562,6 +550,9 @@ checksum
|
||||
forward_ptr until last byte before the checksum).
|
||||
In the case of info frames, covers area from begginning of frame.
|
||||
|
||||
Syncpoint tags:
|
||||
---------------
|
||||
|
||||
syncpoint_checksum
|
||||
crc32 checksum
|
||||
checksum covers from first byte after syncpoint startcode until last
|
||||
@ -583,6 +574,9 @@ global_key_pts
|
||||
global_key_pts MUST be bigger or equal to dts of all past frames across
|
||||
all streams, and smaller or equal to pts of all future frames.
|
||||
|
||||
Index tags:
|
||||
-----------
|
||||
|
||||
max_pts
|
||||
s = max_pts % stream_count
|
||||
pts = max_pts / stream_count
|
||||
@ -612,6 +606,9 @@ index_ptr
|
||||
EOF, as index_ptr will always be 12 bytes before the end of file if
|
||||
there is an index at all.
|
||||
|
||||
Info tags:
|
||||
----------
|
||||
|
||||
id
|
||||
the ID of the type/name pair, so it is more compact
|
||||
0 means end
|
||||
|
Loading…
Reference in New Issue
Block a user