[vlc-devel] commit: ogg: only check kate magic in the first 8 bytes (Vincent Penquerc' h )
git version control
git at videolan.org
Mon Jun 16 17:30:49 CEST 2008
vlc | branch: master | Vincent Penquerc'h <ogg.k.ogg.k at googlemail.com> | Mon Jun 16 10:37:34 2008 +0100| [9074b2fc7ea620916db536a46ccb8a4340dbdf71]
ogg: only check kate magic in the first 8 bytes
Follows a proposed common requirement for Ogg codecs.
Signed-off-by: Rémi Denis-Courmont <rdenis at simphalempin.com>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9074b2fc7ea620916db536a46ccb8a4340dbdf71
---
modules/demux/ogg.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index 907629f..32b5b3b 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -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" );
More information about the vlc-devel
mailing list