aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpdemux/demux_mkv.cpp
diff options
context:
space:
mode:
authorGravatar mosu <mosu@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-05-06 10:36:32 +0000
committerGravatar mosu <mosu@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-05-06 10:36:32 +0000
commit4b244acded6afb7f766c30bfe59e6deedcd61a3c (patch)
tree971d8a01a755400e2304b437634eca1b96a54c4c /libmpdemux/demux_mkv.cpp
parentd97bf7589b108ca95570f5b27aa8ec9f6960ab03 (diff)
Vorbis header packet lengths were calculated incorrectly.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10080 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/demux_mkv.cpp')
-rw-r--r--libmpdemux/demux_mkv.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmpdemux/demux_mkv.cpp b/libmpdemux/demux_mkv.cpp
index e839a6367e..fe4f5ee8ea 100644
--- a/libmpdemux/demux_mkv.cpp
+++ b/libmpdemux/demux_mkv.cpp
@@ -493,7 +493,8 @@ static int check_track_information(mkv_demuxer_t *d) {
t->headers[1] = &c[offset + t->header_sizes[0]];
t->headers[2] = &c[offset + t->header_sizes[0] +
t->header_sizes[1]];
- t->header_sizes[2] = t->private_size - offset;
+ t->header_sizes[2] = t->private_size - offset -
+ t->header_sizes[0] - t->header_sizes[1];
t->a_formattag = 0xFFFE;
} else {