diff --git a/src/common/kax_file.cpp b/src/common/kax_file.cpp index 17e3d51de..90542b338 100644 --- a/src/common/kax_file.cpp +++ b/src/common/kax_file.cpp @@ -316,7 +316,7 @@ kax_file_c::get_element_size(EbmlElement *e) { auto max_end_pos = e->GetElementPosition() + EBML_ID_LENGTH(static_cast(*e)); for (size_t idx = 0, end = m->ListSize(); end > idx; ++idx) - max_end_pos = std::max(max_end_pos, static_cast((*m)[idx]->GetElementPosition() + get_element_size((*m)[idx]))); + max_end_pos = std::max(max_end_pos, (*m)[idx]->GetElementPosition() + get_element_size((*m)[idx])); return max_end_pos - e->GetElementPosition(); }