aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-02-23 19:51:16 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-02-23 19:51:16 +0000
commit40284e9c8b5bad2947d3121b7763cda67eb6aab1 (patch)
tree21abee5711b4e71e7c01957a7e77909b32091e2c
parent7ac15917641bd6cee2be93e749c29802e8df8a57 (diff)
downloadffmpeg-40284e9c8b5bad2947d3121b7763cda67eb6aab1.tar.gz
start track id at 2, track id 1 for timecode
Originally committed as revision 17545 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/mxfenc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
index e287e55d2b..d225114c24 100644
--- a/libavformat/mxfenc.c
+++ b/libavformat/mxfenc.c
@@ -568,7 +568,7 @@ static void mxf_write_track(AVFormatContext *s, AVStream *st, enum MXFMetadataSe
// 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 @@ static void mxf_write_structural_component(AVFormatContext *s, AVStream *st, enu
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 @@ static void mxf_write_generic_desc(AVFormatContext *s, AVStream *st, const UID k
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);