Commit 68b84095 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: ts: remove PES full header check

Some full headers (including filling) are more than 34 bytes.
Now fail late parsing it, and relegate header>packet size check
to caller.
parent 56d7e552
......@@ -2136,8 +2136,6 @@ static int ParsePESHeader( demux_t *p_demux, const uint8_t *p_header, size_t i_h
{
/* mpeg2 PES */
i_skip = p_header[8] + 9;
if( i_header < i_skip )
return VLC_EGENERIC;
if( p_header[7]&0x80 ) /* has pts */
{
......@@ -2203,9 +2201,6 @@ static int ParsePESHeader( demux_t *p_demux, const uint8_t *p_header, size_t i_h
break;
}
if( i_header < i_skip )
return VLC_EGENERIC;
*pi_skip = i_skip;
return VLC_SUCCESS;
}
......
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