Fix (currently) harmless bug in initial frame parsing

This commit is contained in:
Cameron Gutman 2014-06-29 11:24:20 -07:00
parent c9e5230e37
commit 2f082b9f85

View File

@ -32,6 +32,9 @@ public class VideoPacket {
public void initializeWithLengthNoRtpHeader(int length) public void initializeWithLengthNoRtpHeader(int length)
{ {
// Back to beginning
byteBuffer.rewind();
// Read the video header fields // Read the video header fields
frameIndex = byteBuffer.getInt(); frameIndex = byteBuffer.getInt();
packetIndex = byteBuffer.getInt(); packetIndex = byteBuffer.getInt();