From c33bbe79de414173948bff8478cc0ce95b703659 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sat, 27 Dec 2003 17:52:18 +0000 Subject: [PATCH] Fixed the rerender_headers function to properly calculate the EbmlVoid size after the track headers. --- src/mkvmerge.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mkvmerge.cpp b/src/mkvmerge.cpp index 88e9de3ea..1d85c947b 100644 --- a/src/mkvmerge.cpp +++ b/src/mkvmerge.cpp @@ -1059,8 +1059,10 @@ void rerender_track_headers() { int64_t new_void_size; kax_tracks->UpdateSize(); - new_void_size = kax_tracks->GetElementPosition() + kax_tracks->GetSize() - - void_after_track_headers->GetElementPosition() + 1024; + new_void_size = void_after_track_headers->GetElementPosition() + + void_after_track_headers->GetSize() - + kax_tracks->GetElementPosition() - + kax_tracks->ElementSize(); out->save_pos(kax_tracks->GetElementPosition()); kax_tracks->Render(*out); delete void_after_track_headers;