diff options
author | Chris Robinson <[email protected]> | 2014-05-15 01:32:32 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-05-15 01:32:32 -0700 |
commit | 042003896f79881b1a8cd4a89d7e516792b83e4a (patch) | |
tree | 1390aeb00b73d106d8386e0ea9872423c651444b /utils | |
parent | 6dcd4fec7d0c520742c424eb04b286d8db2b4df9 (diff) |
Early-out when outN is 0
Diffstat (limited to 'utils')
-rw-r--r-- | utils/makehrtf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/makehrtf.c b/utils/makehrtf.c index f8ac66c6..e35c45a7 100644 --- a/utils/makehrtf.c +++ b/utils/makehrtf.c @@ -1211,6 +1211,9 @@ static void ResamplerRun (ResamplerT * rs, const uint inN, const double * in, co double r; uint j_f, j_s; + if (outN == 0) + return; + // Handle in-place operation. if (in == out) work = CreateArray (outN); |