Commit 87429637 authored by Rémi Duraffort's avatar Rémi Duraffort

demux_ogg: fix strncmp length.

(cherry picked from commit 2de4c9faad5c03b4b3d9a87b51ab14e24eb7e380)
Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent 8b78a172
......@@ -1835,7 +1835,7 @@ static void Ogg_ReadAnnodexHeader( vlc_object_t *p_this,
p_stream->b_force_backup = 1;
}
else if( !strncmp(content_type_string, "audio/x-speex", 14) )
else if( !strncmp(content_type_string, "audio/x-speex", 13) )
{
p_stream->fmt.i_cat = AUDIO_ES;
p_stream->fmt.i_codec = VLC_CODEC_SPEEX;
......@@ -1849,14 +1849,14 @@ static void Ogg_ReadAnnodexHeader( vlc_object_t *p_this,
p_stream->b_force_backup = 1;
}
else if( !strncmp(content_type_string, "video/x-xvid", 14) )
else if( !strncmp(content_type_string, "video/x-xvid", 12) )
{
p_stream->fmt.i_cat = VIDEO_ES;
p_stream->fmt.i_codec = VLC_FOURCC( 'x','v','i','d' );
p_stream->b_force_backup = 1;
}
else if( !strncmp(content_type_string, "video/mpeg", 14) )
else if( !strncmp(content_type_string, "video/mpeg", 10) )
{
/* n.b. MPEG streams are unsupported right now */
p_stream->fmt.i_cat = VIDEO_ES;
......
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