diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-03-18 12:13:48 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-03-18 12:13:48 +0000 |
commit | b4e3e2b7d8230437e2be3ac9042d167259b725fa (patch) | |
tree | 32ba9345f8ffb4b04f3e2ca8a8da302fa0e716bf /DOCS | |
parent | fac2fee9fe724e7b639310113fe6161654b44a67 (diff) | |
download | mpv-b4e3e2b7d8230437e2be3ac9042d167259b725fa.tar.bz2 mpv-b4e3e2b7d8230437e2be3ac9042d167259b725fa.tar.xz |
flags cleanup
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17888 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'DOCS')
-rw-r--r-- | DOCS/tech/mpcf.txt | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/DOCS/tech/mpcf.txt b/DOCS/tech/mpcf.txt index a6cd7304e8..72f4c8fc3b 100644 --- a/DOCS/tech/mpcf.txt +++ b/DOCS/tech/mpcf.txt @@ -182,7 +182,7 @@ main header: continue; } flags[i]= tmp_flag; - stream_id_plus1[i]= tmp_stream; + stream_id[i]= tmp_stream; data_size_mul[i]= tmp_mul; data_size_lsb[i]= tmp_size + j; pts_delta[i]= tmp_pts; @@ -217,20 +217,22 @@ stream_header: frame: frame_code f(8) - if(stream_id_plus1[frame_code]==0){ - stream_id v - } - if(pts_delta[frame_code]==0){ - coded_pts v - } frame_flags= flags[frame_code] if(frame_flags&FLAG_CODED){ coded_flags v frame_flags ^= coded_flags } + if(frame_flags&FLAG_STREAM_ID){ + stream_id v + } + if(frame_flags&FLAG_CODED_PTS){ + coded_pts v + } if(frame_flags&FLAG_SIZE_MSB){ data_size_msb v } + if(frame_flags&FLAG_RESERVED) + reserved_count[frame_code] v for(i=0; i<reserved_count[frame_code]; i++) reserved v if(frame_flags&FLAG_CHECKSUM){ @@ -513,9 +515,12 @@ flags[frame_code], frame_flags 1 FLAG_KEY if set, frame is keyframe 2 FLAG_EOR if set, stream has no relevance on presentation. (EOR) + 8 FLAG_CODED_PTS if set, coded_pts is in the frame header + 16 FLAG_STREAM_ID if set, stream_id is coded in the frame header 32 FLAG_SIZE_MSB if set, data_size_msb is at frame header, otherwise data_size_msb is 0 64 FLAG_CHECKSUM if set then the frame header contains a checksum + 128 FLAG_RESERVED if set, reserved_count is coded in the frame header 4096 FLAG_CODED if set, coded_flags are stored in the frame header. 8192 FLAG_INVALID if set, frame_code is invalid. @@ -527,9 +532,8 @@ flags[frame_code], frame_flags FLAG_CHECKSUM MUST be set if the frame is larger than 2*max_distance or its pts differs by more then max_pts_distance from the last frame -stream_id_plus1[frame_code] +stream_id[frame_code] MUST be <250 - if it is 0, then the stream_id is coded in the frame data_size_mul[frame_code] MUST be <16384 |