[FFmpeg-cvslog] avfilter/asrc_sinc: remove no longer correct (un)pack
Paul B Mahol
git at videolan.org
Fri Mar 4 00:08:30 EET 2022
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Mar 3 22:52:45 2022 +0100| [f4d123341c564e33d0410c41a05e9782d4df7585] | committer: Paul B Mahol
avfilter/asrc_sinc: remove no longer correct (un)pack
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f4d123341c564e33d0410c41a05e9782d4df7585
---
libavfilter/asrc_sinc.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/libavfilter/asrc_sinc.c b/libavfilter/asrc_sinc.c
index 9ccb5694df..e64a1e2f1c 100644
--- a/libavfilter/asrc_sinc.c
+++ b/libavfilter/asrc_sinc.c
@@ -200,8 +200,6 @@ static void invert(float *h, int n)
h[(n - 1) / 2] += 1;
}
-#define PACK(h, n) h[1] = h[n]
-#define UNPACK(h, n) h[n] = h[1], h[n + 1] = h[1] = 0;
#define SQR(a) ((a) * (a))
static float safe_log(float x)
@@ -239,7 +237,6 @@ static int fir_to_phase(SincContext *s, float **h, int *len, int *post_len, floa
}
s->tx_fn(s->tx, work, work, sizeof(float)); /* Cepstral: */
- UNPACK(work, work_len);
for (i = 0; i <= work_len; i += 2) {
float angle = atan2f(work[i + 1], work[i]);
@@ -261,7 +258,6 @@ static int fir_to_phase(SincContext *s, float **h, int *len, int *post_len, floa
work[i + 1] = 0;
}
- PACK(work, work_len);
s->itx_fn(s->itx, work, work, sizeof(float));
for (i = 0; i < work_len; i++)
More information about the ffmpeg-cvslog
mailing list