diff --git a/sf-writer/src/WriterH5Writer.cpp b/sf-writer/src/WriterH5Writer.cpp index 750d6a6..d7911de 100644 --- a/sf-writer/src/WriterH5Writer.cpp +++ b/sf-writer/src/WriterH5Writer.cpp @@ -158,5 +158,5 @@ void WriterH5Writer::write( &(metadata->is_good_frame), H5::PredType::NATIVE_UINT8, b_m_space, f_m_space); - current_write_index_++; + current_write_index_ += n_images_in_buffer; }