mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +00:00
Fixed the rerender_headers function to properly calculate the EbmlVoid size after the track headers.
This commit is contained in:
parent
7e2456b472
commit
c33bbe79de
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user