diff --git a/moonlight-common/src/com/limelight/nvstream/av/video/VideoDepacketizer.java b/moonlight-common/src/com/limelight/nvstream/av/video/VideoDepacketizer.java index 61d8a1d23..afb51f090 100644 --- a/moonlight-common/src/com/limelight/nvstream/av/video/VideoDepacketizer.java +++ b/moonlight-common/src/com/limelight/nvstream/av/video/VideoDepacketizer.java @@ -193,6 +193,10 @@ public void addInputData(VideoPacket packet) // Add a buffer descriptor describing the NAL data in this packet avcNalDataChain.add(data); avcNalDataLength += location.offset-start; + + // Reassemble the NALs if this was the last packet for this frame + if (packet.getPacketIndex() + 1 == packet.getTotalPackets()) + reassembleAvcNal(); } } }