summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
56d7e55)
Some full headers (including filling) are more than 34 bytes.
Now fail late parsing it, and relegate header>packet size check
to caller.
{
/* mpeg2 PES */
i_skip = p_header[8] + 9;
{
/* mpeg2 PES */
i_skip = p_header[8] + 9;
- if( i_header < i_skip )
- return VLC_EGENERIC;
if( p_header[7]&0x80 ) /* has pts */
{
if( p_header[7]&0x80 ) /* has pts */
{
- if( i_header < i_skip )
- return VLC_EGENERIC;
-
*pi_skip = i_skip;
return VLC_SUCCESS;
}
*pi_skip = i_skip;
return VLC_SUCCESS;
}