Commit 36777b8a authored by mbenoit's avatar mbenoit Committed by Jean-Paul Saman

tables/eit: Fix invalid parsing of 'free_ca' field

Signed-off-by: default avatarJean-Paul Saman <jpsaman@videolan.org>
parent 27eca357
...@@ -535,7 +535,7 @@ void dvbpsi_eit_sections_decode(dvbpsi_eit_t* p_eit, ...@@ -535,7 +535,7 @@ void dvbpsi_eit_sections_decode(dvbpsi_eit_t* p_eit,
((uint32_t)(p_byte[8]) << 8) | ((uint32_t)(p_byte[8]) << 8) |
p_byte[9]; p_byte[9];
uint8_t i_running_status = (uint8_t)(p_byte[10]) >> 5; 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) | uint16_t i_ev_length = ((uint16_t)(p_byte[10] & 0xf) << 8) |
p_byte[11]; p_byte[11];
dvbpsi_eit_event_t *p_event = dvbpsi_eit_event_add(p_eit, dvbpsi_eit_event_t *p_event = dvbpsi_eit_event_add(p_eit,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment