[bTSstream-devel] make eit API closer to sdt's

Christophe Massiot git at videolan.org
Tue Apr 14 14:29:56 CEST 2015


bitstream | branch: master | Christophe Massiot <cmassiot at openheadend.tv> | Tue Apr 14 14:29:14 2015 +0200| [0f0bff96917604a5e4dddeef8fa21410123c1c25] | committer: Christophe Massiot

make eit API closer to sdt's

> http://git.videolan.org/gitweb.cgi/bitstream.git/?a=commit;h=0f0bff96917604a5e4dddeef8fa21410123c1c25
---

 dvb/si/eit.h |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/dvb/si/eit.h b/dvb/si/eit.h
index 0a49cfd..f529b5d 100644
--- a/dvb/si/eit.h
+++ b/dvb/si/eit.h
@@ -114,6 +114,11 @@ static inline uint8_t eit_get_last_table_id(const uint8_t *p_eit)
     return p_eit[13];
 }
 
+static inline void eitn_init(uint8_t *p_eit_n)
+{
+    p_eit_n[10] = 0;
+}
+
 static inline uint16_t eitn_get_event_id(const uint8_t *p_eit_n)
 {
     return (p_eit_n[0] << 8) | p_eit_n[1];
@@ -167,9 +172,9 @@ static inline bool eitn_get_ca(const uint8_t *p_eit_n)
     return (p_eit_n[10] & 0x10) == 0x10;
 }
 
-static inline void eitn_set_ca(uint8_t *p_eit_n, bool b_free_CA_mode)
+static inline void eitn_set_ca(uint8_t *p_eit_n)
 {
-    p_eit_n[10] = b_free_CA_mode ? (p_eit_n[10] | 0x10) : (p_eit_n[10] &~ 0x10);
+    p_eit_n[10] |= 0x10;
 }
 
 static inline uint16_t eitn_get_desclength(const uint8_t *p_eit_n)



More information about the biTStream-devel mailing list