X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fdemux%2Fps.h;h=a15daad3cc010dfd970734c5fa79fb746191598d;hb=fa8f48546df5cb3faaa87c3400dd647474514b2b;hp=2b415411606c1fa5fb0baf521f65711890cfadc1;hpb=d761cf6f1d40a952548407b843ee0c3f0a3cd472;p=vlc diff --git a/modules/demux/ps.h b/modules/demux/ps.h index 2b41541160..a15daad3cc 100644 --- a/modules/demux/ps.h +++ b/modules/demux/ps.h @@ -344,10 +344,10 @@ static inline int ps_pkt_parse_system( block_t *p_pkt, ps_psm_t *p_psm, /* 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] ) {