summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-10-14 23:01:20 +0000
committerjstebbins <[email protected]>2011-10-14 23:01:20 +0000
commitfef8e0b3d51ce29f2cb4e99ee6d9aef31d2e6d95 (patch)
tree13db34397e4fdd114f3e31b85c7520b3805f958d
parent0558ea26d52bc4c26f125b0470c1482f654e3d84 (diff)
fix bone-head error in libmkv private data offset
forgot to zero the offset before adding context offset to it. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4285 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--contrib/libmkv/A00-private-data-offset.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/libmkv/A00-private-data-offset.patch b/contrib/libmkv/A00-private-data-offset.patch
new file mode 100644
index 000000000..beddda548
--- /dev/null
+++ b/contrib/libmkv/A00-private-data-offset.patch
@@ -0,0 +1,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];