fix bug
authorRonny Strutz <ronny.strutz@multimedia-labs.de>
Wed, 23 Nov 2005 02:41:15 +0000 (02:41 +0000)
committerRonny Strutz <ronny.strutz@multimedia-labs.de>
Wed, 23 Nov 2005 02:41:15 +0000 (02:41 +0000)
lib/dvb_ci/dvbci.cpp

index 3ddd9bb6141a5aeb6c9b3fcb9758e120f3ee7530..59425bbccd063217b18e062ebb486ec028aee1bf 100644 (file)
@@ -431,7 +431,7 @@ int eDVBCISlot::sendCAPMT(eDVBServicePMTHandler *pmthandler, const std::vector<u
                                int i=0;
                                int lenbytes = raw_data[3] & ~0x80;
                                while(i < lenbytes)
                                int i=0;
                                int lenbytes = raw_data[3] & ~0x80;
                                while(i < lenbytes)
-                                       wp |= (raw_data[4+i] << (8 * i++));
+                                       wp = (wp << 8) | raw_data[4 + i++];
                                wp+=4;
                                wp+=lenbytes;
                                hlen = 4 + lenbytes;
                                wp+=4;
                                wp+=lenbytes;
                                hlen = 4 + lenbytes;