Commit bdb8aee9 authored by Laurent Aimar's avatar Laurent Aimar

Fixed VC1 probe function.

parent c3334ee3
...@@ -81,11 +81,10 @@ static int Open( vlc_object_t * p_this ) ...@@ -81,11 +81,10 @@ static int Open( vlc_object_t * p_this )
const uint8_t *p_peek; const uint8_t *p_peek;
es_format_t fmt; 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 || if( p_peek[0] != 0x00 || p_peek[1] != 0x00 ||
p_peek[2] != 0x00 || p_peek[3] != 0x01 || p_peek[2] != 0x01 || p_peek[3] != 0x0f ) /* Sequence header */
p_peek[4] != 0x0f ) /* Sequence header */
{ {
if( !p_demux->b_force ) if( !p_demux->b_force )
{ {
......
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