]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Roll back fix for extra frames -- it fixes sync issues but introduces transients...
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Thu, 22 Sep 2022 17:19:46 +0000 (18:19 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Thu, 22 Sep 2022 17:19:46 +0000 (18:19 +0100)
rtp.c

diff --git a/rtp.c b/rtp.c
index 567b5b9c9f5701cb093a2145a82f42ba2955dc2e..55a7068074b2343938258442d0a33e8f836eb8ae 100644 (file)
--- a/rtp.c
+++ b/rtp.c
@@ -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)) {