Commit 4fd5fea2 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

audiowsinclimit: Add some more braces to make the code more readable

parent 766e437a
......@@ -295,9 +295,9 @@ gst_audio_wsinclimit_build_kernel (GstAudioWSincLimit * self)
for (i = 0; i < len; ++i)
kernel[i] = -kernel[i];
if (len % 2 == 1)
if (len % 2 == 1) {
kernel[(len - 1) / 2] += 1.0;
else {
} else {
kernel[len / 2 - 1] += 0.5;
kernel[len / 2] += 0.5;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment