Commit ce2d74fd authored by Laurent Aimar's avatar Laurent Aimar

* ps.h: fixed a segfault with Madonna-audioconverterfails.vob

parent 79786424
...@@ -191,7 +191,7 @@ static inline int ps_pkt_parse_system( block_t *p_pkt, ...@@ -191,7 +191,7 @@ static inline int ps_pkt_parse_system( block_t *p_pkt,
while( p < &p_pkt->p_buffer[p_pkt->i_buffer] ) while( p < &p_pkt->p_buffer[p_pkt->i_buffer] )
{ {
/* msg_Dbg( p_demux, " SYSTEM_START_CODE: id=0x%x", p[0] ); */ /* msg_Dbg( p_demux, " SYSTEM_START_CODE: id=0x%x", p[0] ); */
if( p[0] != 0xbd ) if( p[0] >= 0xc0 ) /* And != 0xbd */
{ {
int i_id = p[0]; int i_id = p[0];
int i_tk = PS_ID_TO_TK( i_id ); int i_tk = PS_ID_TO_TK( i_id );
......
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