Skip to content

Commit

Permalink
Merge pull request #100 from loudmax/XAVCL
Browse files Browse the repository at this point in the history
Precharge and postroll handling
  • Loading branch information
philipnbbc authored Oct 21, 2024
2 parents 16fdf39 + 1ef1690 commit 9a79daf
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/mxf_op1a/OP1AFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,9 @@ void OP1AFile::PrepareHeaderMetadata()
for (i = 0; i < mTracks.size(); i++)
mTracks[i]->PrepareWrite(mTrackCounts[mTracks[i]->GetDataDef()]);
if (HAVE_PRIMARY_EC) {
mCPManager->SetStartTimecode(mStartTimecode);
Timecode start_timecode = mStartTimecode;
start_timecode.AddOffset(- mOutputStartOffset, mFrameRate);
mCPManager->SetStartTimecode(start_timecode);
mCPManager->PrepareWrite();
mIndexTable->PrepareWrite();
}
Expand Down
10 changes: 9 additions & 1 deletion src/mxf_reader/MXFFileReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2325,7 +2325,15 @@ bool MXFFileReader::HaveInterFrameEncodingTrack() const
essence_type == MPEG2LG_MP_HL_1440_1080P ||
essence_type == MPEG2LG_MP_HL_720P ||
essence_type == MPEG2LG_MP_H14_1080I ||
essence_type == MPEG2LG_MP_H14_1080P)
essence_type == MPEG2LG_MP_H14_1080P ||
essence_type == AVC_BASELINE ||
essence_type == AVC_CONSTRAINED_BASELINE ||
essence_type == AVC_MAIN ||
essence_type == AVC_EXTENDED ||
essence_type == AVC_HIGH ||
essence_type == AVC_HIGH_10 ||
essence_type == AVC_HIGH_422 ||
essence_type == AVC_HIGH_444)
{
return true;
}
Expand Down
4 changes: 3 additions & 1 deletion src/rdd9_mxf/RDD9File.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,9 @@ void RDD9File::PrepareHeaderMetadata()
for (i = 0; i < mTracks.size(); i++)
mTracks[i]->PrepareWrite(mTrackCounts[mTracks[i]->GetDataDef()]);

mCPManager->SetStartTimecode(mStartTimecode);
Timecode start_timecode = mStartTimecode;
start_timecode.AddOffset(- mOutputStartOffset, mFrameRate);
mCPManager->SetStartTimecode(start_timecode);
mCPManager->PrepareWrite();
mIndexTable->PrepareWrite();

Expand Down

0 comments on commit 9a79daf

Please sign in to comment.