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 e77c097d1a7b27075f20c3f30a49dc9d2037d2fd..017c31da85573fbfa0ceb1321e57e2c61fe8f416 100644 (file)
@@ -507,7 +507,7 @@ void eDVBCAService::sendCAPMT()
                int i=0;
                int lenbytes = m_capmt[3] & ~0x80;
                while(i < lenbytes)
                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;
        }
                wp+=4;
                wp+=lenbytes;
        }