/* Parse a PES (and skip i_skip_extra in the payload) */
static inline int ps_pkt_parse_pes( block_t *p_pes, int i_skip_extra )
{
- uint8_t header[30];
+ uint8_t header[34];
unsigned int i_skip = 0;
- memcpy( header, p_pes->p_buffer, __MIN( p_pes->i_buffer, 30 ) );
+ memcpy( header, p_pes->p_buffer, __MIN( p_pes->i_buffer, 34 ) );
switch( header[3] )
{