[vlc-devel] commit: Fixed VC1 probe function. (Laurent Aimar )

git version control git at videolan.org
Thu Apr 30 22:19:23 CEST 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Wed Apr 29 20:41:05 2009 +0200| [bdb8aee9c6de1ad900da0378d696bbeead5eae24] | committer: Laurent Aimar 

Fixed VC1 probe function.

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

 modules/demux/vc1.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/demux/vc1.c b/modules/demux/vc1.c
index 99b8f93..8c3af59 100644
--- a/modules/demux/vc1.c
+++ b/modules/demux/vc1.c
@@ -81,11 +81,10 @@ static int Open( vlc_object_t * p_this )
     const uint8_t *p_peek;
     es_format_t fmt;
 
-    if( stream_Peek( p_demux->s, &p_peek, 5 ) < 5 ) return VLC_EGENERIC;
+    if( stream_Peek( p_demux->s, &p_peek, 4 ) < 4 ) return VLC_EGENERIC;
 
     if( p_peek[0] != 0x00 || p_peek[1] != 0x00 ||
-        p_peek[2] != 0x00 || p_peek[3] != 0x01 ||
-        p_peek[4] != 0x0f ) /* Sequence header */
+        p_peek[2] != 0x01 || p_peek[3] != 0x0f ) /* Sequence header */
     {
         if( !p_demux->b_force )
         {




More information about the vlc-devel mailing list