Skip to content

Commit

Permalink
Fix PosTableIndex for RDD 36 which has no temporal reordering
Browse files Browse the repository at this point in the history
It was wrongly set to -1 which indicates that the Temporal Offset
property in the index array is used to indicate temporal differences.
This commit fixes it to be 0 which indicates there is no temporal
reordering.
  • Loading branch information
philipnbbc committed Aug 16, 2023
1 parent 198f3d1 commit 1a2b7a7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/mxf_op1a/OP1ARDD36Track.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void OP1ARDD36Track::PrepareWrite(uint8_t track_count)
CompleteEssenceKeyAndTrackNum(track_count);

mCPManager->RegisterPictureTrackElement(mTrackIndex, mEssenceElementKey, false, 5);
mIndexTable->RegisterPictureTrackElement(mTrackIndex, false, true);
mIndexTable->RegisterPictureTrackElement(mTrackIndex, false, false);
}

void OP1ARDD36Track::WriteSamplesInt(const unsigned char *data, uint32_t size, uint32_t num_samples)
Expand Down
2 changes: 1 addition & 1 deletion test/imf/test_rdd36_1.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f77cce44755ef17ba44ce08513b4c9fb
43c166b85bb745f6c3d6524ece0f4a26
2 changes: 1 addition & 1 deletion test/imf/test_rdd36_2.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0e91ab514b472b82ea34ef0b32b848ac
ce7b2f58f21bde0401c4c1e598d8c37d
2 changes: 1 addition & 1 deletion test/mxf_op1a/rdd36_422.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4816099ab01c757c7b852fd6360d2a27
d66af8c95686e9a7459eb48749a3829d
2 changes: 1 addition & 1 deletion test/mxf_op1a/rdd36_4444.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10163ef2d374eb08a1e63a19d2cc077e
ee7bb3b13ebceb2850d2fc8c3dcfb92e

0 comments on commit 1a2b7a7

Please sign in to comment.