mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-25 04:11:44 +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;
|
int64_t new_void_size;
|
||||||
|
|
||||||
kax_tracks->UpdateSize();
|
kax_tracks->UpdateSize();
|
||||||
new_void_size = kax_tracks->GetElementPosition() + kax_tracks->GetSize() -
|
new_void_size = void_after_track_headers->GetElementPosition() +
|
||||||
void_after_track_headers->GetElementPosition() + 1024;
|
void_after_track_headers->GetSize() -
|
||||||
|
kax_tracks->GetElementPosition() -
|
||||||
|
kax_tracks->ElementSize();
|
||||||
out->save_pos(kax_tracks->GetElementPosition());
|
out->save_pos(kax_tracks->GetElementPosition());
|
||||||
kax_tracks->Render(*out);
|
kax_tracks->Render(*out);
|
||||||
delete void_after_track_headers;
|
delete void_after_track_headers;
|
||||||
|
Loading…
Reference in New Issue
Block a user