Commit 38a8917d authored by bcoudurier's avatar bcoudurier

correctly set multi track operational pattern

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17116 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f5f5a709
...@@ -381,8 +381,14 @@ static void mxf_write_preface(AVFormatContext *s) ...@@ -381,8 +381,14 @@ static void mxf_write_preface(AVFormatContext *s)
mxf_write_local_tag(pb, 16, 0x3B03); mxf_write_local_tag(pb, 16, 0x3B03);
mxf_write_uuid(pb, ContentStorage, 0); mxf_write_uuid(pb, ContentStorage, 0);
// operational pattern
mxf_write_local_tag(pb, 16, 0x3B09); mxf_write_local_tag(pb, 16, 0x3B09);
put_buffer(pb, op1a_ul, 16); if (s->nb_streams > 1) {
put_buffer(pb, op1a_ul, 14);
put_be16(pb, 0x0900); // multi track
} else {
put_buffer(pb, op1a_ul, 16);
}
// write essence_container_refs // write essence_container_refs
mxf_write_local_tag(pb, 8 + 16 * mxf->essence_container_count, 0x3B0A); mxf_write_local_tag(pb, 8 + 16 * mxf->essence_container_count, 0x3B0A);
...@@ -1000,7 +1006,14 @@ static void mxf_write_partition(AVFormatContext *s, int bodysid, ...@@ -1000,7 +1006,14 @@ static void mxf_write_partition(AVFormatContext *s, int bodysid,
put_be64(pb, 0); // bodyOffset put_be64(pb, 0); // bodyOffset
put_be32(pb, bodysid); // bodySID put_be32(pb, bodysid); // bodySID
put_buffer(pb, op1a_ul, 16); // operational pattern
// operational pattern
if (s->nb_streams > 1) {
put_buffer(pb, op1a_ul, 14);
put_be16(pb, 0x0900); // multi track
} else {
put_buffer(pb, op1a_ul, 16);
}
// essence container // essence container
mxf_write_essence_container_refs(s); mxf_write_essence_container_refs(s);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment