changeset 10079:7c13793dbfa0

Vorbis header packet lengths were calculated incorrectly.
author mosu
date Tue, 06 May 2003 10:36:32 +0000
parents 379f48cace77
children 312eb2923169
files libmpdemux/demux_mkv.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mkv.cpp	Tue May 06 02:36:44 2003 +0000
+++ b/libmpdemux/demux_mkv.cpp	Tue May 06 10:36:32 2003 +0000
@@ -493,7 +493,8 @@
             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 {