Remove some duplicated code.
This commit is contained in:
2 files changed
+17
-38
No files matched your search
@@ -370,19 +370,6 @@
|
||||
MP4SetTrackDurationPerChunk(_fileHandle, dstTrackId, timeScale / 8);
|
||||
MP4SetTrackIntegerProperty(_fileHandle, dstTrackId, "tkhd.layer", -1);
|
||||
|
||||
int32_t displayFlags = 0;
|
||||
if (vPlacement) {
|
||||
displayFlags = 0x20000000;
|
||||
}
|
||||
if (subTrack.someSamplesAreForced) {
|
||||
displayFlags |= 0x40000000;
|
||||
}
|
||||
if (subTrack.allSamplesAreForced) {
|
||||
displayFlags |= 0xC0000000;
|
||||
}
|
||||
|
||||
MP4SetTrackIntegerProperty(_fileHandle, dstTrackId, "mdia.minf.stbl.stsd.tx3g.displayFlags", displayFlags);
|
||||
|
||||
MP4SetTrackIntegerProperty(_fileHandle, dstTrackId, "mdia.minf.stbl.stsd.tx3g.horizontalJustification", 1);
|
||||
MP4SetTrackIntegerProperty(_fileHandle, dstTrackId, "mdia.minf.stbl.stsd.tx3g.verticalJustification", -1);
|
||||
|
||||
@@ -391,9 +378,6 @@
|
||||
MP4SetTrackIntegerProperty(_fileHandle, dstTrackId, "mdia.minf.stbl.stsd.tx3g.bgColorBlue", 0);
|
||||
MP4SetTrackIntegerProperty(_fileHandle, dstTrackId, "mdia.minf.stbl.stsd.tx3g.bgColorAlpha", 0);
|
||||
|
||||
MP4SetTrackIntegerProperty(_fileHandle, dstTrackId, "mdia.minf.stbl.stsd.tx3g.defTextBoxBottom", subSize.height);
|
||||
MP4SetTrackIntegerProperty(_fileHandle, dstTrackId, "mdia.minf.stbl.stsd.tx3g.defTextBoxRight", videoSize.width);
|
||||
|
||||
MP4SetTrackIntegerProperty(_fileHandle, dstTrackId, "mdia.minf.stbl.stsd.tx3g.fontSize", videoSize.height * 0.05);
|
||||
|
||||
MP4SetTrackIntegerProperty(_fileHandle, dstTrackId, "mdia.minf.stbl.stsd.tx3g.fontColorRed", textColor[0]);
|
||||
|
||||
Reference in new issue
Block a user