[libdvbpsi-devel] SIS table: fix CID #17234

Jean-Paul Saman git at videolan.org
Mon Mar 16 16:02:12 CET 2015


libdvbpsi | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | 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);



More information about the libdvbpsi-devel mailing list