Commit 9074b2fc authored by Vincent Penquerc'h's avatar Vincent Penquerc'h Committed by Rémi Denis-Courmont

ogg: only check kate magic in the first 8 bytes

Follows a proposed common requirement for Ogg codecs.
Signed-off-by: default avatarRémi Denis-Courmont <rdenis@simphalempin.com>
parent bbc37b53
......@@ -898,8 +898,8 @@ static int Ogg_FindLogicalStreams( demux_t *p_demux )
&oggpacket );
}
/* Check for Kate header */
else if( oggpacket.bytes >= 9 &&
! memcmp( &oggpacket.packet[1], "kate\0\0\0\0", 8 ) )
else if( oggpacket.bytes >= 8 &&
! memcmp( &oggpacket.packet[1], "kate\0\0\0", 7 ) )
{
Ogg_ReadKateHeader( p_stream, &oggpacket );
msg_Dbg( p_demux, "found kate header" );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment