From e05f18997070453de0b9a0fc90e79cbd009fdf4a Mon Sep 17 00:00:00 2001 From: Christophe Massiot Date: Thu, 9 Jan 2020 23:38:13 +0100 Subject: [PATCH] dvb/si/sdt: fix consistency check between sections Spotted by Dmitriy Novash. --- dvb/si/sdt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dvb/si/sdt.h b/dvb/si/sdt.h index d8170e3..7286296 100644 --- a/dvb/si/sdt.h +++ b/dvb/si/sdt.h @@ -1,7 +1,7 @@ /***************************************************************************** * sdt.h: ETSI EN 300 468 Service Definition Table (SDT) ***************************************************************************** - * Copyright (C) 2009-2010 VideoLAN + * Copyright (C) 2009-2020 VideoLAN * * Authors: Christophe Massiot * @@ -238,7 +238,7 @@ static inline bool sdt_table_validate(uint8_t **pp_sections) if (!psi_check_crc(p_section)) return false; - if (!j) + if (!i) i_onid = sdt_get_onid(p_section); else if (sdt_get_onid(p_section) != i_onid) return false;