Need extra space in ring buffer for sequence end.

This commit is contained in:
Johns 2012-03-06 18:37:40 +01:00
parent 226760490b
commit 1cbaddf75c

View File

@ -1630,7 +1630,7 @@ int PlayVideo(const uint8_t * data, int size)
return size;
}
// buffer full: needed for replay
if (atomic_read(&VideoPacketsFilled) >= VIDEO_PACKET_MAX - 1) {
if (atomic_read(&VideoPacketsFilled) >= VIDEO_PACKET_MAX - 3) {
return 0;
}
// get pts/dts