blob: beddda548124bb13f3b8095681b4df05b6629743 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
diff --git a/src/matroska.c b/src/matroska.c
index 45d5b1e..faa29d2 100644
--- a/src/matroska.c
+++ b/src/matroska.c
@@ -174,6 +174,7 @@ int mk_writeHeader(mk_Writer *w, const char *writingApp)
w->seek_data.tracks = w->root->d_cur - w->segment_ptr;
if (w->tracks) {
+ offset = 0;
CHECK(mk_closeContext(w->tracks, &offset));
for (i = 0; i < w->num_tracks; i++) {
tk = w->tracks_arr[i];
|