From 1a2b7a77715d4c4ef2d752c64076dd805bfb1405 Mon Sep 17 00:00:00 2001 From: Philip de Nier Date: Wed, 16 Aug 2023 10:31:53 +0100 Subject: [PATCH] Fix PosTableIndex for RDD 36 which has no temporal reordering 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. --- src/mxf_op1a/OP1ARDD36Track.cpp | 2 +- test/imf/test_rdd36_1.md5 | 2 +- test/imf/test_rdd36_2.md5 | 2 +- test/mxf_op1a/rdd36_422.md5 | 2 +- test/mxf_op1a/rdd36_4444.md5 | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mxf_op1a/OP1ARDD36Track.cpp b/src/mxf_op1a/OP1ARDD36Track.cpp index 608528ca..bb2b3a27 100644 --- a/src/mxf_op1a/OP1ARDD36Track.cpp +++ b/src/mxf_op1a/OP1ARDD36Track.cpp @@ -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) diff --git a/test/imf/test_rdd36_1.md5 b/test/imf/test_rdd36_1.md5 index 0f212fe9..3e04cd9e 100644 --- a/test/imf/test_rdd36_1.md5 +++ b/test/imf/test_rdd36_1.md5 @@ -1 +1 @@ -f77cce44755ef17ba44ce08513b4c9fb \ No newline at end of file +43c166b85bb745f6c3d6524ece0f4a26 \ No newline at end of file diff --git a/test/imf/test_rdd36_2.md5 b/test/imf/test_rdd36_2.md5 index 4eeeacf1..72d6e548 100644 --- a/test/imf/test_rdd36_2.md5 +++ b/test/imf/test_rdd36_2.md5 @@ -1 +1 @@ -0e91ab514b472b82ea34ef0b32b848ac \ No newline at end of file +ce7b2f58f21bde0401c4c1e598d8c37d \ No newline at end of file diff --git a/test/mxf_op1a/rdd36_422.md5 b/test/mxf_op1a/rdd36_422.md5 index 161705eb..e8999105 100644 --- a/test/mxf_op1a/rdd36_422.md5 +++ b/test/mxf_op1a/rdd36_422.md5 @@ -1 +1 @@ -4816099ab01c757c7b852fd6360d2a27 \ No newline at end of file +d66af8c95686e9a7459eb48749a3829d \ No newline at end of file diff --git a/test/mxf_op1a/rdd36_4444.md5 b/test/mxf_op1a/rdd36_4444.md5 index cd9fe3de..3baf85c5 100644 --- a/test/mxf_op1a/rdd36_4444.md5 +++ b/test/mxf_op1a/rdd36_4444.md5 @@ -1 +1 @@ -10163ef2d374eb08a1e63a19d2cc077e \ No newline at end of file +ee7bb3b13ebceb2850d2fc8c3dcfb92e \ No newline at end of file