Skip to content

Commit

Permalink
Set random access index table entry flag
Browse files Browse the repository at this point in the history
The flag by default is set to 80h, which indicates random access for the
edit unit. This commit sets that default flag to 80h for the intra-coded / data
essence types that didn't have it already set.
  • Loading branch information
philipnbbc committed Mar 28, 2024
1 parent 0c72b44 commit 396c148
Show file tree
Hide file tree
Showing 23 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/mxf_op1a/OP1ADataTrack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void OP1ADataTrack::WriteSamplesInt(const unsigned char *data, uint32_t size, ui

mCPManager->WriteSamples(mTrackIndex, data, size, num_samples);
if (!mConstantDataSize && !mMaxDataSize)
mIndexTable->AddIndexEntry(mTrackIndex, mPosition, 0, 0, 0, true, false);
mIndexTable->AddIndexEntry(mTrackIndex, mPosition, 0, 0, 0x80, true, false);

mPosition++;
}
Expand Down
2 changes: 1 addition & 1 deletion src/mxf_op1a/OP1ARDD36Track.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void OP1ARDD36Track::WriteSamplesInt(const unsigned char *data, uint32_t size, u
}

mCPManager->WriteSamples(mTrackIndex, data, size, num_samples);
mIndexTable->AddIndexEntry(mTrackIndex, mPosition, 0, 0, 0, true, false);
mIndexTable->AddIndexEntry(mTrackIndex, mPosition, 0, 0, 0x80, true, false);

mPosition++;
}
2 changes: 1 addition & 1 deletion src/mxf_op1a/OP1ATimedTextTrack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ void OP1ATimedTextTrack::WriteIndexTable(File *mxf_file, Partition *index_partit
index_segment.setIndexSID(mIndexSID);
index_segment.setBodySID(mBodySID);
index_segment.setEditUnitByteCount(0);
index_segment.appendIndexEntry(0, 0, 0, 0, vector<uint32_t>(), vector<mxfRational>());
index_segment.appendIndexEntry(0, 0, 0x80, 0, vector<uint32_t>(), vector<mxfRational>());

index_segment.write(mxf_file, index_partition, 0);
}
Expand Down
2 changes: 1 addition & 1 deletion src/mxf_op1a/OP1AVC2Track.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void OP1AVC2Track::WriteSamplesInt(const unsigned char *data, uint32_t size, uin
mWriterHelper.ProcessFrame(data, size, &data_array, &array_size);

mCPManager->WriteSample(mTrackIndex, data_array, array_size);
mIndexTable->AddIndexEntry(mTrackIndex, mWriterHelper.GetProcessFrameCount() - 1, 0, 0, 0, true, false);
mIndexTable->AddIndexEntry(mTrackIndex, mWriterHelper.GetProcessFrameCount() - 1, 0, 0, 0x80, true, false);
}

void OP1AVC2Track::CompleteWrite()
Expand Down
2 changes: 1 addition & 1 deletion src/rdd9_mxf/RDD9DataTrack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void RDD9DataTrack::WriteSamplesInt(const unsigned char *data, uint32_t size, ui

mCPManager->WriteSamples(mTrackIndex, data, size, num_samples);
if (!mConstantDataSize && !mMaxDataSize)
mIndexTable->AddIndexEntry(mTrackIndex, mPosition, 0, 0, 0, true);
mIndexTable->AddIndexEntry(mTrackIndex, mPosition, 0, 0, 0x80, true);

mPosition++;
}
2 changes: 1 addition & 1 deletion test/imf/test_rdd36_1.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12699b79cc1a650272484b35f84138b7
3acbc8890630ec93e6a5df250329941e
2 changes: 1 addition & 1 deletion test/imf/test_rdd36_2.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7d18f1541cb15931fd0c595782d675ef
95c61d08221cda9e8830cd7db8e63a1b
2 changes: 1 addition & 1 deletion test/imf/test_timed_text_1.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f1de0c5f1ce50a6a318759d59b3447fc
4a7be872d08d0c7888b248af1e0edec7
2 changes: 1 addition & 1 deletion test/imf/test_timed_text_2.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f1de0c5f1ce50a6a318759d59b3447fc
4a7be872d08d0c7888b248af1e0edec7
2 changes: 1 addition & 1 deletion test/mxf_op1a/rdd36_422.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e812963248ca564aa674d018a70e8126
193bf8a8c71447893fc16be1984774e2
2 changes: 1 addition & 1 deletion test/mxf_op1a/rdd36_422_itu2020.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2d9f8fae5c3ac35f36fa87b7e7c2f775
84365f12d4d447d267a15cb533287ec9
2 changes: 1 addition & 1 deletion test/mxf_op1a/rdd36_4444.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6c4d3c5cb5ddc0809b5bc37c188cbeb0
19eae5f0a0e92abce795d13d04beafa6
2 changes: 1 addition & 1 deletion test/mxf_op1a/vc2.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
fa630b0f6cd3f728423e9bd1f3f8b000
3822bc4fd04636bccf9cd6eec822e5f8
2 changes: 1 addition & 1 deletion test/rdd6/test3.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
726a2adb3a8befd58b358122125d5b96
b91a0bd9862ca7221a69e2d88b918565
2 changes: 1 addition & 1 deletion test/timed_text/test_1.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b966c37759ab39ccb3c16efe1a398aac
c23f74620cb1a0c5190668f98ddec949
2 changes: 1 addition & 1 deletion test/timed_text/test_10.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
74e83126d14612acb06c9d29a533497e
b7b9c9c9cb099abf7bb28db78ff520ce
2 changes: 1 addition & 1 deletion test/timed_text/test_2.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9367fd12af13130cd6c6bfae54961cda
df83cc4ff397305a3d31217961e20748
2 changes: 1 addition & 1 deletion test/timed_text/test_3.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b538c2e6aa0682f763c01774b5dc6403
b1316e823a2231a6e5e36b9ca2f83030
2 changes: 1 addition & 1 deletion test/timed_text/test_4.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
58f3cde2827bf946aae1810c2bf22eb1
e01ab8abe22425ebb0eab6685726202d
2 changes: 1 addition & 1 deletion test/timed_text/test_5.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
48d74cb2d54e9c0d9fdded4738721563
d8a9d440fffecd04edfd556b4190132e
2 changes: 1 addition & 1 deletion test/timed_text/test_6.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1bccbf669bcdc9edd7be8c75027f8208
846b1b1de4dddcd7c3e1eeacec55a0bc
2 changes: 1 addition & 1 deletion test/timed_text/test_7.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7af5f601d535a4ad485f0d1627f91b04
f2ee69b86be88ba526259e1b544e460e
2 changes: 1 addition & 1 deletion test/timed_text/test_9.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9367fd12af13130cd6c6bfae54961cda
df83cc4ff397305a3d31217961e20748

0 comments on commit 396c148

Please sign in to comment.