summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordknn <yoann.blein@free.fr>2012-08-29 11:14:36 (GMT)
committerdknn <yoann.blein@free.fr>2012-09-22 09:34:49 (GMT)
commit56b5b129c2fbea3828faaf0cdf882534c2433eff (patch)
tree14022983fdcd54c7bcc61f77f12dbe1d7e13f973 /Swiften/ScreenSharing/VP8RTPParser.cpp
parent6247ed394302ff2cf1f33a71df808bebf7241242 (diff)
downloadswift-contrib-56b5b129c2fbea3828faaf0cdf882534c2433eff.zip
swift-contrib-56b5b129c2fbea3828faaf0cdf882534c2433eff.tar.bz2
Better error resilience
Diffstat (limited to 'Swiften/ScreenSharing/VP8RTPParser.cpp')
-rw-r--r--Swiften/ScreenSharing/VP8RTPParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/ScreenSharing/VP8RTPParser.cpp b/Swiften/ScreenSharing/VP8RTPParser.cpp
index d44140b..3701ed2 100644
--- a/Swiften/ScreenSharing/VP8RTPParser.cpp
+++ b/Swiften/ScreenSharing/VP8RTPParser.cpp
@@ -27,7 +27,7 @@ void VP8RTPParser::newPayloadReceived(const uint8_t* data, size_t len, bool hasM
uint8_t optX = data[headerSize++];
if (optX & IBit) { // PictureID byte is present
uint8_t optI = data[headerSize++];
- pictureID = optI >> 1;
+ pictureID = (optI & 127);
}
}