Mercurial > mplayer.hg
comparison DOCS/tech/mpcf.txt @ 17585:03829916a1c3
Put index_ptr within index to avoid it popping out of nowhere.
author | ods15 |
---|---|
date | Sat, 11 Feb 2006 09:56:49 +0000 |
parents | 187260c06b4f |
children | 99b6205ff32c |
comparison
equal
deleted
inserted
replaced
17584:187260c06b4f | 17585:03829916a1c3 |
---|---|
263 last_pts += A + B | 263 last_pts += A + B |
264 } | 264 } |
265 } | 265 } |
266 } | 266 } |
267 reserved_bytes | 267 reserved_bytes |
268 index_ptr u(64) | |
268 checksum u(32) | 269 checksum u(32) |
269 | 270 |
270 info_frame: (optional) | 271 info_frame: (optional) |
271 for(;;){ | 272 for(;;){ |
272 id v | 273 id v |
323 if(next_code == syncpoint_startcode) | 324 if(next_code == syncpoint_startcode) |
324 syncpoint | 325 syncpoint |
325 frame | 326 frame |
326 } | 327 } |
327 } | 328 } |
328 if (has_index){ | |
329 index_ptr u(64) | |
330 } | |
331 | 329 |
332 | 330 |
333 Tag description: | 331 Tag description: |
334 ---------------- | 332 ---------------- |
335 | 333 |
603 eor_pts | 601 eor_pts |
604 Coded only if EOR is set at the position of the syncpoint. The pts of | 602 Coded only if EOR is set at the position of the syncpoint. The pts of |
605 that EOR. EOR is unset by the first keyframe after it. | 603 that EOR. EOR is unset by the first keyframe after it. |
606 | 604 |
607 index_ptr | 605 index_ptr |
608 Length in bytes from the first byte of the index startcode to the first | 606 Length in bytes of the entire index, from the first byte of the |
609 byte of the index_ptr. If there is no index, index_ptr MUST NOT be | 607 startcode until the last byte of the checksum. |
610 written. If there are several indexes, index_ptr MUST point to the last | 608 Note: A demuxer can use this to find the index when it is written at |
611 index. | 609 EOF, as index_ptr will always be 12 bytes before the end of file if |
610 there is an index at all. | |
612 | 611 |
613 id | 612 id |
614 the ID of the type/name pair, so it is more compact | 613 the ID of the type/name pair, so it is more compact |
615 0 means end | 614 0 means end |
616 | 615 |