From 537a0ede4f9ebdeef9b4c88e50c0a913307cf37f Mon Sep 17 00:00:00 2001 From: Nathan Caldwell Date: Thu, 26 Jul 2007 23:34:13 -0600 Subject: [PATCH] Undo 'VLC compatability fixes' as they're broken at the moment. --- src/matroska.c | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/src/matroska.c b/src/matroska.c index 6198b5f..973ef1c 100644 --- a/src/matroska.c +++ b/src/matroska.c @@ -133,9 +133,7 @@ int mk_writeHeader(mk_Writer *w, const char *writingApp) { if (w->vlc_compat) { - CHECK(mk_writeVoid(w->root, 0x100)); // 256 bytes should be enough room for our Seek entries. - CHECK(mk_writeVoid(w->root, 0x800)); // 2048 bytes for Chapters. - CHECK(mk_writeVoid(w->root, 0x1000)); // 4096 bytes for Cues. + CHECK(mk_writeVoid(w->root, 256)); // 256 bytes should be enough room for our Seek entries. } else { w->seek_data.seekhead = 0x80000000; @@ -429,35 +427,15 @@ int mk_close(mk_Writer *w) { if (w->chapters != NULL) { - if (w->vlc_compat) { - if (mk_seekFile(w, w->segment_ptr + 0x103) < 0) - ret = -1; - } w->seek_data.chapters = w->f_pos - w->segment_ptr; mk_writeChapters(w); - if (w->vlc_compat) { - if (mk_flushContextData(w->root) < 0) - ret = -1; - if (mk_writeVoid(w->root, (0x800 - (w->f_pos - w->segment_ptr))) < 0) - ret = -1; - } if (mk_flushContextData(w->root) < 0) ret = -1; } w->seek_data.cues = w->f_pos - w->segment_ptr; -// if (w->vlc_compat) { -// if (mk_seekFile(w, w->segment_ptr + 259 + 2051) < 0) -// ret = -1; -// } if (mk_closeContext(w->cues, 0) < 0) ret = -1; - if (w->vlc_compat) { - if (mk_flushContextData(w->root) < 0) - ret = -1; - if (mk_writeVoid(w->root, (0x1000 - (w->f_pos - w->segment_ptr))) < 0) - ret = -1; - } if (mk_flushContextData(w->root) < 0) ret = -1; -- 2.11.4.GIT