From 2f082b9f85cf1ea8e700ab57600b76671d9af2a3 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 29 Jun 2014 11:24:20 -0700 Subject: [PATCH] Fix (currently) harmless bug in initial frame parsing --- .../src/com/limelight/nvstream/av/video/VideoPacket.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/moonlight-common/src/com/limelight/nvstream/av/video/VideoPacket.java b/moonlight-common/src/com/limelight/nvstream/av/video/VideoPacket.java index 618da91c..cc141493 100644 --- a/moonlight-common/src/com/limelight/nvstream/av/video/VideoPacket.java +++ b/moonlight-common/src/com/limelight/nvstream/av/video/VideoPacket.java @@ -32,6 +32,9 @@ public class VideoPacket { public void initializeWithLengthNoRtpHeader(int length) { + // Back to beginning + byteBuffer.rewind(); + // Read the video header fields frameIndex = byteBuffer.getInt(); packetIndex = byteBuffer.getInt();