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

Add surface sanity check

parent 71d54207
No related branches found
No related tags found
No related merge requests found
Pipeline #29084 failed
...@@ -279,6 +279,11 @@ void Receiver::_processVideo(const StreamPacket &spkt, const Packet &pkt) { ...@@ -279,6 +279,11 @@ void Receiver::_processVideo(const StreamPacket &spkt, const Packet &pkt) {
return; return;
} }
if (tx == 0 || ty == 0) {
LOG(ERROR) << "No Packets";
return;
}
auto &surface = ividstate.surface[static_cast<int>(spkt.channel)]; auto &surface = ividstate.surface[static_cast<int>(spkt.channel)];
// Allocate a decode surface, this is a tiled image to be split later // Allocate a decode surface, this is a tiled image to be split later
......
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