[FFmpeg-soc] [soc]: r3441 - mxf/mxfenc.c
spyfeng
subversion at mplayerhq.hu
Mon Aug 18 09:50:34 CEST 2008
Author: spyfeng
Date: Mon Aug 18 09:50:34 2008
New Revision: 3441
Log:
factorize common code lines in mxf_write_structural_componment()
Modified:
mxf/mxfenc.c
Modified: mxf/mxfenc.c
==============================================================================
--- mxf/mxfenc.c (original)
+++ mxf/mxfenc.c Mon Aug 18 09:50:34 2008
@@ -562,23 +562,21 @@ static int mxf_write_structural_componen
mxf_write_local_tag(pb, 8, 0x0202);
put_be64(pb, st->duration);
+ mxf_write_local_tag(pb, 32, 0x1101);
if (type == SourcePackage) {
// write source package uid, end of the reference
- mxf_write_local_tag(pb, 32, 0x1101);
for (i = 0; i < 4; i++) {
put_be64(pb, 0);
}
+ } else
+ mxf_write_umid(pb, SourcePackage, 0);
+ mxf_write_local_tag(pb, 4, 0x1102);
+ if (type == SourcePackage)
// write source track id
- mxf_write_local_tag(pb, 4, 0x1102);
put_be32(pb, 0);
- } else {
- mxf_write_local_tag(pb, 32, 0x1101);
- mxf_write_umid(pb, SourcePackage, 0);
-
- mxf_write_local_tag(pb, 4, 0x1102);
+ else
put_be32(pb, stream_index);
- }
return 0;
}
More information about the FFmpeg-soc
mailing list