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 C6C004814A for ; Fri, 10 May 2024 14:07:17 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 09C0968D3C2; Fri, 10 May 2024 17:07:14 +0300 (EEST) Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C3A3868D26B for ; Fri, 10 May 2024 17:07:07 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id E95731C0004 for ; Fri, 10 May 2024 14:07:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1715350027; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=fcCv0+8EmCgLe82gPdIO0tnu3wAX/gd6PXuDGDLDkIk=; b=m6XEBG/7stn/iBIzy16O/Ev0355HrlzE6K7zqDF6011BBl+4YanhtSVq54iBfX6pSKLIRG x/CuckKsO/lo1RCzQBktKWowQe7kmLFerNGQNrEX8o/IPrMctY6rqSUkya3CzPc0SNpL03 Tl6mYdBF7VjLwwBwx9xLw0DI9KQ5vp6zkn+9gyWX7u/XFysi/q/XmibY7gilgX5wgMo6WN THkyMB3r7pmppC4j449enuHcx5kTrOBG3wGmsGim8A2eqhgWOedQZ0a1H+lJPEfUOpjVpM buOfetlTeMUTZXD5Orya/O9Ik4I3i/8CQ6sluQuNfPCr84leF+vP+PoFbxa6Tw== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Fri, 10 May 2024 16:07:03 +0200 Message-ID: <20240510140705.443047-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.43.2 MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 1/3] avcodec/ilbcdec: Remove dead code 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: Yes the same dead code is in "iLBC Speech Coder ANSI-C Source Code" Fixes: CID1509370 Logically dead code Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavcodec/ilbcdec.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libavcodec/ilbcdec.c b/libavcodec/ilbcdec.c index 4ecdff41831..ba1da168bc0 100644 --- a/libavcodec/ilbcdec.c +++ b/libavcodec/ilbcdec.c @@ -1095,12 +1095,6 @@ static void do_plc(int16_t *plc_residual, /* (o) concealed residual */ if (s->consPLICount * s->block_samples > 320) { use_gain = 29491; /* 0.9 in Q15 */ - } else if (s->consPLICount * s->block_samples > 640) { - use_gain = 22938; /* 0.7 in Q15 */ - } else if (s->consPLICount * s->block_samples > 960) { - use_gain = 16384; /* 0.5 in Q15 */ - } else if (s->consPLICount * s->block_samples > 1280) { - use_gain = 0; /* 0.0 in Q15 */ } /* Compute mixing factor of picth repeatition and noise: -- 2.43.2 _______________________________________________ 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".