Fix decoding of misaligned start sequences.

This commit is contained in:
Cameron Gutman
2013-11-10 02:53:51 -05:00
parent c631649867
commit d5665ac318
2 changed files with 12 additions and 11 deletions
@@ -100,10 +100,8 @@ public class NvVideoStream {
}
System.out.println("VID: First frame read ("+offset+" bytes)");
// FIXME: Investigate: putting these NALs into the data stream
// causes the picture to get messed up
//depacketizer.addInputData(new AvPacket(new AvBufferDescriptor(firstFrame, 0, offset)));
depacketizer.addInputData(new AvVideoPacket(new AvByteBufferDescriptor(firstFrame, 0, offset)));
}
public void setupRtpSession(String host) throws SocketException