From patchwork Sat Jul 8 21:25:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 42550 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:6d25:b0:130:f365:34ad with SMTP id fv37csp663726pzb; Sat, 8 Jul 2023 14:28:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlHV9hEKilzY+9fbaJ/lZq5NVbypdqcP3LN7loBnVn5JJdet+T1gp8XxqAkn4OYGwaHpIG/V X-Received: by 2002:a19:5043:0:b0:4f8:43b8:c722 with SMTP id z3-20020a195043000000b004f843b8c722mr6144623lfj.67.1688851687493; Sat, 08 Jul 2023 14:28:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688851687; cv=none; d=google.com; s=arc-20160816; b=kVjZ1DhEM58f/qWJ5+1g0A1pXKA5U1EGQuJNcUGEl9MrfOGNBnXz21L/DRn8wirFgN pxoGBdC368sSpdfr1hVwNYBBmJoLrr5cEgcQfbmVHytPTOhQ1KrBDQZFa71esLt3xCzC bKebmXwdSEJc8Cg0tjvPPjMzZJ6OL3Mxhne4gox3Uv3cg/pcTcOm2NxfKd/DUFtM1nQC NdGx+rUg3b7DyqEOPzjnMuGcxAe31GURTrGl7fGtNRagor7lA8Y4VDbLNL45VtKskq42 tlKwHGd4rvWxAAzvk6XVzmJFoPxrerODS5g0RqMYDxU1ejnklrnRhtVYrY2Wdk8fgTrp C8Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:delivered-to; bh=m0tZ4utfyBL1rx5syUjxXCKIN7N2Ydg/JtvlGdupkRI=; fh=YYwLYmpaV0Fpw/rxmSKNRLS2XzDkAlGbHATiKOPtZrY=; b=DdaRLf3KiySst0+RsqyQrFzo+PQ3ovOZUPzZsvyMMSAUb+c3zPYOOU+QtM9jlB2M3W OoFrFFIeqJWRxthykdiEA6Rabtcp7yugpYgbjGEYy7SpdszwZwKkyw2M+/0ZFOB0HD7+ ZPjHY5J/xut4HS4gXuOkx82U8hMrxUjZGFB1EJo83pfZiSRBwzUowBa4q9VljXrcHZcV swIKVA6QTtRhCeJBygPY2zm6czxfRMb49m+iQXhHAmApEo27hUPj4H1tjF3bdrZUFppR MSJLCf2i6P4Qv9mc3Vw3WmCqXl2Qf0xVDKeD0hcOwlWrB5ikjtKq7KH4cQ5XpFXG6cck v6Xg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id e9-20020a1709067e0900b0099233cac125si4760020ejr.915.2023.07.08.14.28.07; Sat, 08 Jul 2023 14:28:07 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 923BE68C5F9; Sun, 9 Jul 2023 00:25:56 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 663FF68C57D for ; Sun, 9 Jul 2023 00:25:48 +0300 (EEST) X-GND-Sasl: michael@niedermayer.cc Received: by mail.gandi.net (Postfix) with ESMTPSA id BA299240004 for ; Sat, 8 Jul 2023 21:25:47 +0000 (UTC) From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Sat, 8 Jul 2023 23:25:29 +0200 Message-Id: <20230708212530.109692-17-michael@niedermayer.cc> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230708212530.109692-1-michael@niedermayer.cc> References: <20230708212530.109692-1-michael@niedermayer.cc> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 17/18] avradio/sdrdemux: more correct phase 2 bandwidth of FM demodulation X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: u6hZAohvQ5Zn Signed-off-by: Michael Niedermayer --- libavradio/sdrdemux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavradio/sdrdemux.c b/libavradio/sdrdemux.c index 1ded01e957..d73cbc0a06 100644 --- a/libavradio/sdrdemux.c +++ b/libavradio/sdrdemux.c @@ -840,7 +840,7 @@ static int probe_fm(SDRContext *sdr) { int i; int bandwidth_f = 180*1000; - int bandwidth_p2 = 38*1000; //phase 2 bandwidth + int bandwidth_p2 = 18*1000; //phase 2 bandwidth int half_bw_i = bandwidth_f * (int64_t)sdr->block_size / sdr->sdr_sample_rate; float last_score[3] = {FLT_MAX, FLT_MAX, FLT_MAX}; int border_i = (sdr->sdr_sample_rate - FFMIN(sdr->bandwidth, sdr->sdr_sample_rate*7/8)) * sdr->block_size / sdr->sdr_sample_rate;