[vlc-commits] demux_ogg: fix strncmp length.

Rémi Duraffort git at videolan.org
Sun Feb 20 10:51:45 CET 2011


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Feb 20 10:51:27 2011 +0100| [2de4c9faad5c03b4b3d9a87b51ab14e24eb7e380] | committer: Rémi Duraffort

demux_ogg: fix strncmp length.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2de4c9faad5c03b4b3d9a87b51ab14e24eb7e380
---

 modules/demux/ogg.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index 4c50f6d..6b044fc3 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -1834,7 +1834,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;
@@ -1848,14 +1848,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;



More information about the vlc-commits mailing list