Skip to content

Commit dc83774

Browse files
committed
file writer: fix file size calculation with dpl enabled
1 parent 47b1076 commit dc83774

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/common/SubTimeFrameFileWriter.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ void SubTimeFrameFileWriter::visit(const SubTimeFrame& pStf)
164164
// NOTE: get only pointers to <hdr, data> struct
165165
mStfData.emplace_back(&lData);
166166
// account the size
167-
const auto lHdrDataSize = lData.mHeader->GetSize() + lData.mData->GetSize();
167+
// NOTE: only take data header. if DPL is enabled the header stack will already have the processing header
168+
const auto lHdrDataSize = sizeof(DataHeader) + lData.mData->GetSize();
168169

169170
// total size
170171
mStfSize += lHdrDataSize;

0 commit comments

Comments
 (0)