Mercurial > libavformat.hg
changeset 3839:2b1b25134815 libavformat
header partition is open incomplete for now
author | bcoudurier |
---|---|
date | Sun, 31 Aug 2008 03:06:38 +0000 |
parents | 940130a27ee0 |
children | e43947d04029 |
files | mxfenc.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mxfenc.c Sun Aug 31 03:01:07 2008 +0000 +++ b/mxfenc.c Sun Aug 31 03:06:38 2008 +0000 @@ -86,10 +86,13 @@ * complete key for operation pattern, partitions, and primer pack */ static const uint8_t op1a_ul[] = { 0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x0D,0x01,0x02,0x01,0x01,0x01,0x01,0x00 }; -static const uint8_t header_partition_key[] = { 0x06,0x0E,0x2B,0x34,0x02,0x05,0x01,0x01,0x0D,0x01,0x02,0x01,0x01,0x02,0x04,0x00 }; // ClosedComplete static const uint8_t footer_partition_key[] = { 0x06,0x0E,0x2B,0x34,0x02,0x05,0x01,0x01,0x0D,0x01,0x02,0x01,0x01,0x04,0x04,0x00 }; // ClosedComplete static const uint8_t primer_pack_key[] = { 0x06,0x0E,0x2B,0x34,0x02,0x05,0x01,0x01,0x0D,0x01,0x02,0x01,0x01,0x05,0x01,0x00 }; + +static const uint8_t header_open_partition_key[] = { 0x06,0x0E,0x2B,0x34,0x02,0x05,0x01,0x01,0x0D,0x01,0x02,0x01,0x01,0x02,0x01,0x00 }; // OpenIncomplete +static const uint8_t header_closed_partition_key[] = { 0x06,0x0E,0x2B,0x34,0x02,0x05,0x01,0x01,0x0D,0x01,0x02,0x01,0x01,0x02,0x04,0x00 }; // ClosedComplete + /** * partial key for header metadata */ @@ -804,7 +807,7 @@ PRINT_KEY(s, "track essence element key", sc->track_essence_element_key); } - mxf_write_partition(s, 0, 1, header_partition_key); + mxf_write_partition(s, 0, 1, header_open_partition_key); // mark the start of the headermetadata and calculate metadata size header_metadata_start = url_ftell(s->pb);