diff options
author | Josh Blum <josh@joshknows.com> | 2011-11-07 16:34:13 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-11-07 16:34:13 -0800 |
commit | d28e3ac765273d7684386c1985802000d22eeea6 (patch) | |
tree | 525744fa17ffa1e628cd28397bc424be83e594f7 /host/lib/convert | |
parent | f1434d7c52728cbf80e954b4c9414a94eec4c9ce (diff) | |
download | uhd-d28e3ac765273d7684386c1985802000d22eeea6.tar.gz uhd-d28e3ac765273d7684386c1985802000d22eeea6.tar.bz2 uhd-d28e3ac765273d7684386c1985802000d22eeea6.zip |
uhd: dont pass 0 sample buffs to converter (avoid segfaults)
Diffstat (limited to 'host/lib/convert')
-rw-r--r-- | host/lib/convert/gen_convert_general.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/host/lib/convert/gen_convert_general.py b/host/lib/convert/gen_convert_general.py index eafb145e6..52b4212b4 100644 --- a/host/lib/convert/gen_convert_general.py +++ b/host/lib/convert/gen_convert_general.py @@ -72,7 +72,6 @@ DECLARE_CONVERTER(sc16_item32_$(end), 1, $(cpu_type), 1, PRIORITY_GENERAL){ } DECLARE_CONVERTER(sc8_item32_$(end), 1, $(cpu_type), 1, PRIORITY_GENERAL){ - if (nsamps == 0) return; //otherwise segfault const item32_t *input = reinterpret_cast<const item32_t *>(size_t(inputs[0]) & ~0x3); $(cpu_type)_t *output = reinterpret_cast<$(cpu_type)_t *>(outputs[0]); $(cpu_type)_t dummy; |