Skip to content
Snippets Groups Projects
Commit e4c2350b authored by Chad Hanna's avatar Chad Hanna
Browse files

gstlal_interpolator: fix bug in determining minimum input size

parent a4a2226a
No related branches found
No related tags found
No related merge requests found
......@@ -698,7 +698,7 @@ static guint get_output_length(GSTLALInterpolator *element, guint samps) {
pretend_samps = element->half_length * element->inrate / element->outrate;
}
guint numinsamps = get_available_samples(element) + samps + pretend_samps;
if (numinsamps < kernel_length(element) - 1)
if (numinsamps < element->blocksampsin)
return 0;
// Note this could be zero
guint numoutsamps = (numinsamps - kernel_length(element) - 1) * element->outrate / element->inrate;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment