From 9f039b4a6929e0dd3daea296fccc571b6a7e8914 Mon Sep 17 00:00:00 2001 From: "Joshua C. Colp" Date: Tue, 29 Mar 2022 12:25:44 -0300 Subject: [PATCH] build: Remove unused clip variable. ASTERISK-29708 patches: clang_mp3.patch submitted by Alexander Traud (license 6520) Change-Id: I7dfb112c5255092843546e752ba31711292c6684 --- layer3.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/layer3.c b/layer3.c index e635576..0fb3f42 100644 --- a/layer3.c +++ b/layer3.c @@ -1878,7 +1878,7 @@ static void III_hybrid(struct mpstr *mp, real fsIn[SBLIMIT][SSLIMIT],real tsOut[ int do_layer3(struct mpstr *mp,unsigned char *pcm_sample,int *pcm_point) { - int gr, ch, ss,clip=0; + int gr, ch, ss; int scalefacs[39]; /* max 39 for short[13][3] mode, mixed: 38, long: 22 */ struct III_sideinfo sideinfo; struct frame *fr; @@ -2013,12 +2013,12 @@ int do_layer3(struct mpstr *mp,unsigned char *pcm_sample,int *pcm_point) for(ss=0;ss= 0) { - clip += synth_ntom_mono(mp,hybridOut[0][ss],pcm_sample,pcm_point); + synth_ntom_mono(mp,hybridOut[0][ss],pcm_sample,pcm_point); } else { int p1 = *pcm_point; - clip += synth_ntom(mp,hybridOut[0][ss],0,pcm_sample,&p1); - clip += synth_ntom(mp,hybridOut[1][ss],1,pcm_sample,pcm_point); + synth_ntom(mp,hybridOut[0][ss],0,pcm_sample,&p1); + synth_ntom(mp,hybridOut[1][ss],1,pcm_sample,pcm_point); } } }