From fcd2a20e01c202558fc0b9b923a6612d3fce8d50 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 15 May 2015 01:38:44 +0000 Subject: [PATCH] Fix a bug caught by -Wall that had us make an extra call for each video packet --- limelight-common/VideoDepacketizer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/limelight-common/VideoDepacketizer.c b/limelight-common/VideoDepacketizer.c index 3a8604b..f54696c 100644 --- a/limelight-common/VideoDepacketizer.c +++ b/limelight-common/VideoDepacketizer.c @@ -445,7 +445,7 @@ void processRtpPayload(PNV_VIDEO_PACKET videoPacket, int length) { } lastPacketInStream = streamPacketIndex; - if (isFirstPacket && + if (firstPacket && getSpecialSeq(¤tPos, &specialSeq) && isSeqFrameStart(&specialSeq) && specialSeq.data[specialSeq.offset + specialSeq.length] == 0x67)