Commit 93ba77c1 authored by bcoudurier's avatar bcoudurier

do no write multi descriptor when only one track is present

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15115 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e51835c6
...@@ -634,8 +634,11 @@ static void mxf_write_package(AVFormatContext *s, enum MXFMetadataSetType type) ...@@ -634,8 +634,11 @@ static void mxf_write_package(AVFormatContext *s, enum MXFMetadataSetType type)
// write multiple descriptor reference // write multiple descriptor reference
if (type == SourcePackage) { if (type == SourcePackage) {
mxf_write_local_tag(pb, 16, 0x4701); mxf_write_local_tag(pb, 16, 0x4701);
mxf_write_uuid(pb, MultipleDescriptor, 0); if (s->nb_streams > 1) {
mxf_write_multi_descriptor(s); mxf_write_uuid(pb, MultipleDescriptor, 0);
mxf_write_multi_descriptor(s);
} else
mxf_write_uuid(pb, SubDescriptor, 0);
} }
for (i = 0; i < s->nb_streams; i++) { for (i = 0; i < s->nb_streams; i++) {
......
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