fix lengthfield parsing
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 23 Nov 2005 16:40:38 +0000 (16:40 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 23 Nov 2005 16:40:38 +0000 (16:40 +0000)
lib/dvb/pmt.cpp

index e77c097..017c31d 100644 (file)
@@ -507,7 +507,7 @@ void eDVBCAService::sendCAPMT()
                int i=0;
                int lenbytes = m_capmt[3] & ~0x80;
                while(i < lenbytes)
-                       wp |= (m_capmt[4+i] << (8 * i++));
+                       wp = (wp << 8) | m_capmt[4 + i++];
                wp+=4;
                wp+=lenbytes;
        }