Browse Source

* mpeg/psi.h: Really fix the infinite loop.

master
Christophe Massiot 14 years ago
parent
commit
088e84d9f3
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      mpeg/psi.h

+ 1
- 0
mpeg/psi.h View File

@ -542,6 +542,7 @@ static inline uint8_t *psi_assemble_payload(uint8_t **pp_psi_buffer,
if (i_section_size > PSI_PRIVATE_MAX_SIZE) { if (i_section_size > PSI_PRIVATE_MAX_SIZE) {
/* invalid section */ /* invalid section */
psi_assemble_reset(pp_psi_buffer, pi_psi_buffer_used); psi_assemble_reset(pp_psi_buffer, pi_psi_buffer_used);
*pi_length = 0;
return NULL; return NULL;
} }
if (i_section_size <= *pi_psi_buffer_used) { if (i_section_size <= *pi_psi_buffer_used) {

Loading…
Cancel
Save