Reduce video latency by 1 frame by not waiting for the next frame to signal us to give the current frame to the decoder. Also avoid giving partially reconstructed frames to the depacketizer because it can get confused with certain packet loss patterns.

This commit is contained in:
Cameron Gutman 2017-06-07 21:52:49 -07:00
commit 3deba8de7e
2 changed files with 71 additions and 28 deletions

View file

@ -19,7 +19,9 @@ typedef struct _RTP_FEC_QUEUE {
int bufferSize;
int bufferLowestSequenceNumber;
int bufferHighestSequenceNumber;
int bufferFirstParitySequenceNumber;
int bufferDataPackets;
int receivedBufferDataPackets;
int fecPercentage;
int currentFrameNumber;