From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id D307645208 for ; Wed, 12 Jul 2023 23:38:08 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id BDBD368C66A; Thu, 13 Jul 2023 02:37:22 +0300 (EEST) 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 E9CC468C62F for ; Thu, 13 Jul 2023 02:37:19 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id E6867240002 for ; Wed, 12 Jul 2023 23:37:18 +0000 (UTC) From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Thu, 13 Jul 2023 01:37:04 +0200 Message-Id: <20230712233706.449054-12-michael@niedermayer.cc> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230712233706.449054-1-michael@niedermayer.cc> References: <20230712233706.449054-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 12/14] avradio/sdrdemux: Reduce FM audio bandwidth down toward reality 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: This avoids useless computations Signed-off-by: Michael Niedermayer --- libavradio/sdrdemux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavradio/sdrdemux.c b/libavradio/sdrdemux.c index c0ca420c84..54d7622809 100644 --- a/libavradio/sdrdemux.c +++ b/libavradio/sdrdemux.c @@ -1519,9 +1519,9 @@ int ff_sdr_common_init(AVFormatContext *s) av_log(s, AV_LOG_INFO, "Block size %d\n", sdr->block_size); sdr->block_time = sdr->block_size / (double)sdr->sdr_sample_rate; - sdr->am_bandwidth = 6 * 1000; - sdr->fm_bandwidth = 180 * 1000; - sdr->fm_bandwidth_p2 = 18 * 1000; + sdr->am_bandwidth = 6 * 1000; + sdr->fm_bandwidth = 180 * 1000; + sdr->fm_bandwidth_p2 = 16.5 * 1000; // Officially Stereo Broadcast FM has 15khz audio bandwidth sdr->am_block_size = find_block_size(sdr, sdr->am_bandwidth); sdr->fm_block_size = find_block_size(sdr, sdr->fm_bandwidth); -- 2.31.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".