SIS table: fix CID #17234
[email protected] (Jean-Paul Saman) Mon, 16 Mar 2015 16:02:12 +0100 (CET)
| Newsgroups | gmane.comp.video.videolan.libdvbpsi.devel |
|---|---|
| Message-ID | <[email protected]> |
libdvbpsi | branch: master | Jean-Paul Saman <[email protected]> | Mon Mar 16 13:35:17 2015 +0100| [51f5d3db024754ad84b22c5d88ee18dd929ce59a] | committer: Jean-Paul Saman SIS table: fix CID #17234 > http://git.videolan.org/gitweb.cgi/libdvbpsi.git/?a=commit;h=51f5d3db024754ad84b22c5d88ee18dd929ce59a --- src/tables/sis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tables/sis.c b/src/tables/sis.c index bbd82b8..cf9798d 100644 --- a/src/tables/sis.c +++ b/src/tables/sis.c @@ -430,7 +430,7 @@ void dvbpsi_sis_sections_decode(dvbpsi_t* p_dvbpsi, dvbpsi_sis_t* p_sis, p_byte < p_section->p_payload_end; ) { p_sis->i_protocol_version = p_byte[3]; - p_sis->b_encrypted_packet = ((p_byte[4] & 0x80)>>8); + p_sis->b_encrypted_packet = ((p_byte[4] & 0x80) == 0x80); /* NOTE: cannot handle encrypted packet */ assert(p_sis->b_encrypted_packet); p_sis->i_encryption_algorithm = ((p_byte[4] & 0x7E) >> 1); _______________________________________________ libdvbpsi-devel mailing list [email protected] https://mailman.videolan.org/listinfo/libdvbpsi-devel