diff options
author | Josh Blum <josh@joshknows.com> | 2011-10-13 13:08:12 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-11-03 20:37:12 -0700 |
commit | 00b6d8359de6ea616f7bd6573d7f87d635d78a79 (patch) | |
tree | caea2fa1178dd5dac722f1395480539474c47b57 /host/lib/convert | |
parent | 522bc87d9f61668f3d22e067c39a98e5f33fc6c5 (diff) | |
download | uhd-00b6d8359de6ea616f7bd6573d7f87d635d78a79.tar.gz uhd-00b6d8359de6ea616f7bd6573d7f87d635d78a79.tar.bz2 uhd-00b6d8359de6ea616f7bd6573d7f87d635d78a79.zip |
uhd: added trailer parsing for occupancy
Diffstat (limited to 'host/lib/convert')
-rw-r--r-- | host/lib/convert/gen_convert_general.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/host/lib/convert/gen_convert_general.py b/host/lib/convert/gen_convert_general.py index 9a1135b0b..be5a65130 100644 --- a/host/lib/convert/gen_convert_general.py +++ b/host/lib/convert/gen_convert_general.py @@ -48,6 +48,7 @@ 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; |