Roll back fix for extra frames -- it fixes sync issues but introduces transients or glitches. Not nice.

This commit is contained in:
Mike Brady
2022-09-22 18:19:46 +01:00
parent a980192a00
commit c6bb33dcaf
+6 -2
View File
@@ -2584,9 +2584,13 @@ void *rtp_buffered_audio_processor(void *arg) {
// Put an arbitrary last-ditch limit of 64 blocks_read_since_flush in case it all goes wrong...
if ((timestamp_difference < 0) && (streaming_has_started == 64) && (blocks_read_since_flush < 64)) {
//if ((timestamp_difference < 0) && (streaming_has_started == 64) && (blocks_read_since_flush < 64)) {
// debug(1,"skipping packet %u.", pcm_buffer_read_point_rtptime);
} else {
//} else {
// if (streaming_has_started >= 59) && (streaming_has_started <= 64) {
// streaming_has_started++;
//} else {
{
// if it's not the very first block of AAC, but is from the first few blocks of a new AAC sequence,
// it will contain noisy transients, so replace it with silence.
if ((blocks_read_since_flush <= 2) && (blocks_read_since_flush != blocks_read)) {