Mercurial > libavformat.hg
changeset 4565:168e8eafefc6 libavformat
start track id at 2, track id 1 for timecode
author | bcoudurier |
---|---|
date | Mon, 23 Feb 2009 19:51:16 +0000 |
parents | d86307d39b6d |
children | 9678d2a61b55 |
files | mxfenc.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mxfenc.c Mon Feb 23 02:38:45 2009 +0000 +++ b/mxfenc.c Mon Feb 23 19:51:16 2009 +0000 @@ -568,7 +568,7 @@ // write track id mxf_write_local_tag(pb, 4, 0x4801); - put_be32(pb, st->index+1); + put_be32(pb, st->index+2); // write track number mxf_write_local_tag(pb, 4, 0x4804); @@ -700,7 +700,7 @@ if (type == SourcePackage) put_be32(pb, 0); else - put_be32(pb, st->index+1); + put_be32(pb, st->index+2); } static void mxf_write_multi_descriptor(AVFormatContext *s) @@ -753,7 +753,7 @@ mxf_write_uuid(pb, SubDescriptor, st->index); mxf_write_local_tag(pb, 4, 0x3006); - put_be32(pb, st->index+1); + put_be32(pb, st->index+2); mxf_write_local_tag(pb, 8, 0x3001); put_be32(pb, mxf->time_base.den);