]> git.sesse.net Git - vlc/blobdiff - modules/demux/ps.h
Cosmetic fixes
[vlc] / modules / demux / ps.h
index 2b415411606c1fa5fb0baf521f65711890cfadc1..a15daad3cc010dfd970734c5fa79fb746191598d 100644 (file)
@@ -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] )
     {