diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-08-31 04:35:09 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-08-31 04:35:09 +0000 |
commit | b18783644c43feed12ce711e878348fe8446e8f5 (patch) | |
tree | 95dbb7aa62443fffe7c93877730b7ea680e5d417 | |
parent | 6ae9d3faae802da68ad0e44d48da93ba276c61af (diff) | |
download | ffmpeg-b18783644c43feed12ce711e878348fe8446e8f5.tar.gz |
do no write multi descriptor when only one track is present
Originally committed as revision 15115 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/mxfenc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index 5096a4b76c..1d36f44757 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -634,8 +634,11 @@ static void mxf_write_package(AVFormatContext *s, enum MXFMetadataSetType type) // write multiple descriptor reference if (type == SourcePackage) { mxf_write_local_tag(pb, 16, 0x4701); - mxf_write_uuid(pb, MultipleDescriptor, 0); - mxf_write_multi_descriptor(s); + if (s->nb_streams > 1) { + 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++) { |