Browse Source

* mpeg/psi.h: Be more leniant towards invalid PATs.

master
Christophe Massiot 14 years ago
parent
commit
2e37c440fd
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      mpeg/psi.h

+ 5
- 3
mpeg/psi.h View File

@ -899,10 +899,12 @@ static inline bool pat_table_validate(uint8_t **pp_sections)
return false; return false;
while ((p_program = pat_get_program(p_section, j)) != NULL) { while ((p_program = pat_get_program(p_section, j)) != NULL) {
uint8_t *p_program2 = pat_table_find_program(pp_sections,
patn_get_program(p_program));
j++; j++;
/* check that the program number is not already in the table */
if (pat_table_find_program(pp_sections,
patn_get_program(p_program)) != p_program)
/* check that the program number is not already in the table
* with another PID */
if (patn_get_pid(p_program) != patn_get_pid(p_program2))
return false; return false;
} }
} }

Loading…
Cancel
Save