[libdvbpsi-devel] tables/eit: Fix invalid parsing of 'free_ca' field
mbenoit
git at videolan.org
Wed Dec 24 12:51:59 CET 2014
libdvbpsi | branch: master | mbenoit <mbenoit at anevia.com> | Mon Dec 15 22:09:36 2014 +0100| [36777b8aa31b028cf5a377a584059e7088a19686] | committer: Jean-Paul Saman
tables/eit: Fix invalid parsing of 'free_ca' field
Signed-off-by: Jean-Paul Saman <jpsaman at videolan.org>
> http://git.videolan.org/gitweb.cgi/libdvbpsi.git/?a=commit;h=36777b8aa31b028cf5a377a584059e7088a19686
---
src/tables/eit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tables/eit.c b/src/tables/eit.c
index 6e359a2..fa1ae7e 100644
--- a/src/tables/eit.c
+++ b/src/tables/eit.c
@@ -535,7 +535,7 @@ void dvbpsi_eit_sections_decode(dvbpsi_eit_t* p_eit,
((uint32_t)(p_byte[8]) << 8) |
p_byte[9];
uint8_t i_running_status = (uint8_t)(p_byte[10]) >> 5;
- bool b_free_ca = ((p_byte[10] & 0x8) == 0x8) ? false : true;
+ bool b_free_ca = ((p_byte[10] & 0x10) == 0x10) ? true : false;
uint16_t i_ev_length = ((uint16_t)(p_byte[10] & 0xf) << 8) |
p_byte[11];
dvbpsi_eit_event_t *p_event = dvbpsi_eit_event_add(p_eit,
More information about the libdvbpsi-devel
mailing list