diff --git a/src/RtpVideoQueue.c b/src/RtpVideoQueue.c index 0914fe8..a4e022e 100644 --- a/src/RtpVideoQueue.c +++ b/src/RtpVideoQueue.c @@ -212,7 +212,7 @@ static int reconstructFrame(PRTP_VIDEO_QUEUE queue) { // based on the packets we've received (or not) so far. If the number of missing shards exceeds the total // needed shards, there is no hope of recovering the data. The only way we could recover this frame is by // receiving OOS data, which is unlikely because we've not seen any recently from this host. - if (!queue->reportedLostFrame && !queue->receivedOosData) { + if (isReferenceFrameInvalidationEnabled() && !queue->reportedLostFrame && !queue->receivedOosData) { // NB: We use totalPackets - neededPackets instead of just bufferParityPackets here because we require // one extra parity shard for recovery if we're in FEC validation mode. if (queue->missingPackets > totalPackets - neededPackets) {