[vlc-commits] demux_ogg: fix strncmp length.

Rémi Duraffort git at videolan.org
Mon Feb 21 22:23:23 CET 2011


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

demux_ogg: fix strncmp length.
(cherry picked from commit 2de4c9faad5c03b4b3d9a87b51ab14e24eb7e380)

Signed-off-by: Rémi Duraffort <ivoire at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=87429637553f0d5f8940d8acf25aedf252280f16
---

 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 57d0c02..d66c93c 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -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;



More information about the vlc-commits mailing list