Mercurial > mplayer.hg
comparison DOCS/tech/mncf.txt @ 13560:ddb3c1da735b
remove short startcodes
author | michael |
---|---|
date | Tue, 05 Oct 2004 12:06:30 +0000 |
parents | dca22cffea19 |
children | 392d2690ad6a |
comparison
equal
deleted
inserted
replaced
13559:dca22cffea19 | 13560:ddb3c1da735b |
---|---|
87 main_startcode f(64) | 87 main_startcode f(64) |
88 packet header | 88 packet header |
89 version v | 89 version v |
90 stream_count v | 90 stream_count v |
91 max_distance v | 91 max_distance v |
92 max_short_distance v | |
93 global_time_base_nom v | 92 global_time_base_nom v |
94 global_time_base_denom v | 93 global_time_base_denom v |
95 short_startcode v | |
96 for(i=0; i<256; ){ | 94 for(i=0; i<256; ){ |
97 tmp_flag v | 95 tmp_flag v |
98 tmp_fields v | 96 tmp_fields v |
99 if(tmp_fields>0) tmp_timestamp s | 97 if(tmp_fields>0) tmp_timestamp s |
100 if(tmp_fields>1) tmp_mul v | 98 if(tmp_fields>1) tmp_mul v |
216 } | 214 } |
217 while(next_code != main_startcode){ | 215 while(next_code != main_startcode){ |
218 if(next_code == info_startcode) | 216 if(next_code == info_startcode) |
219 info_packet | 217 info_packet |
220 else{ | 218 else{ |
221 if(next_code == short_startcode) | 219 if(next_code == frame_startcode) |
222 short_startcode u(24) | |
223 else if(next_code == frame_startcode) | |
224 sync_point | 220 sync_point |
225 frame | 221 frame |
226 } | 222 } |
227 } | 223 } |
228 } | 224 } |
262 this can be used by the demuxer to detect damaged frame headers if the | 258 this can be used by the demuxer to detect damaged frame headers if the |
263 damage results in a too long chain | 259 damage results in a too long chain |
264 SHOULD be set to <=32768 or at least <=65536 unless there is a very good | 260 SHOULD be set to <=32768 or at least <=65536 unless there is a very good |
265 reason to set it higher otherwise reasonable error recovery will be | 261 reason to set it higher otherwise reasonable error recovery will be |
266 impossible | 262 impossible |
267 | |
268 max_short_distance | |
269 max distance of short startcodes or frame_startcodes, the distance may | |
270 only be larger if there is only a single frame between the 2 | |
271 frame_startcodes/short startcodes this can be used by the demuxer to | |
272 detect damaged frame headers if the damage results in a too long chain | |
273 SHOULD be set to <=4096 or at least <=8192 unless there is a very good | |
274 reason to set it higher otherwise reasonable error recovery will be | |
275 impossible | |
276 | |
277 | |
278 short_startcode | |
279 MUST be 3 bytes long and MUST have 'N' as first byte, the second byte | |
280 MUST not be a printable uppercase letter / must not be within 65..90, | |
281 default is 0x4EFE79 | |
282 | 263 |
283 stream_id | 264 stream_id |
284 Note: streams with a lower relative class MUST have a lower relative id | 265 Note: streams with a lower relative class MUST have a lower relative id |
285 so a stream with class 0 MUST allways have a id which is lower then any | 266 so a stream with class 0 MUST allways have a id which is lower then any |
286 stream with class > 0 | 267 stream with class > 0 |