Skip to content
Snippets Groups Projects
Commit 756c6388 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Fix for bad msgpack decode

parent dc194236
No related branches found
No related tags found
No related merge requests found
Pipeline #28955 failed
......@@ -134,7 +134,7 @@ RGBDStream.prototype.subscribe = function() {
RGBDStream.prototype.pushFrames = function(latency, spacket, packet) {
//Checks that the type is jpg
if (spacket[3] >= 64) {
if (spacket[3] >= 64 && packet[5].length > 0 && packet[0] == 103) {
this.data[spacket[3]] = decode(packet[5]);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment