Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
Vorbis tools
Commits
47bc88bb
Commit
47bc88bb
authored
Jun 16, 2008
by
Conrad Parker
Browse files
fit kate magic into the first 8 bytes. Patch by ogg.k.ogg.k
svn path=/trunk/vorbis-tools/; revision=15041
parent
b853c1b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
ogginfo/ogginfo2.c
View file @
47bc88bb
...
...
@@ -698,7 +698,7 @@ static void kate_process(stream_processor *stream, ogg_page *page )
}
#else
/* if we're not building against libkate, do some limited checks */
if
(
packet
.
bytes
<
64
||
memcmp
(
packet
.
packet
+
1
,
"kate
\0\0\0
\0
"
,
8
))
{
if
(
packet
.
bytes
<
64
||
memcmp
(
packet
.
packet
+
1
,
"kate
\0\0\0
"
,
7
))
{
warn
(
_
(
"Warning: packet %d does not seem to be a kate header - "
"invalid kate stream (%d)
\n
"
),
packet
.
packetno
,
stream
->
num
);
...
...
@@ -1063,7 +1063,7 @@ static stream_processor *find_stream_processor(stream_set *set, ogg_page *page)
other_start
(
stream
,
"dirac"
);
else
if
(
packet
.
bytes
>=
8
&&
memcmp
(
packet
.
packet
,
"KW-DIRAC"
,
8
)
==
0
)
other_start
(
stream
,
"dirac (old style)"
);
else
if
(
packet
.
bytes
>=
9
&&
memcmp
(
packet
.
packet
,
"
\x80
kate
\0\0\0
\0
"
,
9
)
==
0
)
else
if
(
packet
.
bytes
>=
8
&&
memcmp
(
packet
.
packet
,
"
\x80
kate
\0\0\0
"
,
8
)
==
0
)
kate_start
(
stream
);
else
other_start
(
stream
,
NULL
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment