mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-30 21:08:59 +08:00
do no write multi descriptor when only one track is present
Originally committed as revision 15115 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -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++) {
|
||||||
|
Reference in New Issue
Block a user