From 584572fd33b93b7ff7e17475d3d3a4de6de2ab09 Mon Sep 17 00:00:00 2001 From: fduncanh Date: Wed, 4 May 2022 16:59:42 -0400 Subject: [PATCH] set shift to 0 as default for ALAC --- lib/raop_rtp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/raop_rtp.c b/lib/raop_rtp.c index b0a4945..c668eca 100644 --- a/lib/raop_rtp.c +++ b/lib/raop_rtp.c @@ -506,10 +506,12 @@ raop_rtp_thread_udp(void *arg) uint64_t sync_ntp_local = raop_ntp_convert_remote_time(raop_rtp->ntp, sync_ntp_remote); int64_t shift; switch (raop_rtp->ct) { - case 0x08: /*AAC-ELD */ + case 0x08: /*AAC-ELD */ shift = -11025; /* 44100/4 */ break; + case 0x02: default: + shift = 0; /* not needed fopr ALAC (audio only) */ break; } raop_rtp_sync_clock(raop_rtp, sync_ntp_local, ntp_start_time, sync_rtp, shift);