Reject large audio timestamp jumps before narrowing PLC packet counts
This commit is contained in:
1 parent
359770ecb4
commit
2aafe172d6
2 files changed
+11
-4
No files matched your search
@@ -68,6 +68,9 @@ static void test_silence_clock() {
|
||||
int length = opus_codec_encode(encoder, pcm, 960, packet, sizeof(packet)); CHECK(length > 0);
|
||||
CHECK(stream_playback_audio_feed(audio, 1000000 + i * 20000, packet, (size_t)length) == 0);
|
||||
}
|
||||
int length = opus_codec_encode(encoder, pcm, 960, packet, sizeof(packet)); CHECK(length > 0);
|
||||
CHECK(stream_playback_audio_feed(audio, INT64_MAX - 20000, packet, (size_t)length) == -2);
|
||||
CHECK(stream_playback_audio_feed(audio, 1080000, packet, (size_t)length) == 0);
|
||||
int got = stream_playback_audio_pull(audio, out, 960, INT64_MAX); CHECK(got > 0);
|
||||
uint64_t before = stream_playback_audio_written(audio);
|
||||
int64_t pts = stream_playback_audio_position(audio, before);
|
||||
|
||||
Reference in new issue
Block a user