aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/lpc.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2022-09-22 15:54:22 -0300
committerJames Almer <jamrial@gmail.com>2022-09-22 18:17:26 -0300
commit0627e6d74ce6f28287ea787c099a0f9fe4baaacb (patch)
tree07289c2dab50e3fcd9bb9b1c0be3c03baafe4457 /libavcodec/lpc.c
parentc8c4a162fc18c0fd99bada66d9ea3b48c64b2450 (diff)
downloadffmpeg-0627e6d74ce6f28287ea787c099a0f9fe4baaacb.tar.gz
avcodec/lpc: zero the middle odd sample in the output
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/lpc.c')
-rw-r--r--libavcodec/lpc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c
index 8603bb9709..dc6a3060ce 100644
--- a/libavcodec/lpc.c
+++ b/libavcodec/lpc.c
@@ -53,6 +53,7 @@ static void lpc_apply_welch_window_c(const int32_t *data, ptrdiff_t len,
w_data[i] = data[i] * w;
w_data[len-1-i] = data[len-1-i] * w;
}
+ w_data[n2] = 0.0;
return;
}