Fixed the rerender_headers function to properly calculate the EbmlVoid size after the track headers.

This commit is contained in:
Moritz Bunkus 2003-12-27 17:52:18 +00:00
parent 7e2456b472
commit c33bbe79de

View File

@ -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;