From d2f0a96a78e6f9b87e8edd124eb8f7f9103fef6c Mon Sep 17 00:00:00 2001 From: Christophe Massiot Date: Thu, 23 Sep 2010 20:56:49 +0000 Subject: [PATCH] * mpeg/psi.h: Fix a major bug preventing multi-section tables to be updated. --- mpeg/psi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpeg/psi.h b/mpeg/psi.h index 5d8939c..9fb4acb 100644 --- a/mpeg/psi.h +++ b/mpeg/psi.h @@ -707,7 +707,7 @@ static inline bool psi_table_compare(uint8_t **pp_sections1, if (i_last_section != psi_table_get_lastsection(pp_sections2)) return false; - for (i = 0; i < i_last_section; i++) { + for (i = 0; i <= i_last_section; i++) { const uint8_t *p_section1 = psi_table_get_section(pp_sections1, i); const uint8_t *p_section2 = psi_table_get_section(pp_sections2, i); if (!psi_compare(p_section1, p_section2))