summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2022-03-03 22:52:45 +0100
committerPaul B Mahol <onemda@gmail.com>2022-03-03 23:07:10 +0100
commitf4d123341c564e33d0410c41a05e9782d4df7585 (patch)
tree6c9d2fcd9da51d7f3a9c28a541f1af10129680ec
parent4a5ee8c39947fe6ce48383aac0e7053aade71e67 (diff)
avfilter/asrc_sinc: remove no longer correct (un)pack
-rw-r--r--libavfilter/asrc_sinc.c4
1 files changed, 0 insertions, 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++)