Skip to content

Commit 1624da7

Browse files
argilojmcorgan
authored andcommitted
Throw an exception if the given K and R are not supported.
1 parent ea2aeca commit 1624da7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gr-fec/lib/cc_decoder_impl.cc

+3
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ namespace gr {
156156
kerneltype << k_ << d_k << r_ << d_rate;
157157

158158
d_kernel = yp_kernel[kerneltype.str()];
159+
if (d_kernel == NULL) {
160+
throw std::runtime_error("cc_decoder: parameters not supported");
161+
}
159162
}
160163

161164
cc_decoder_impl::~cc_decoder_impl()

0 commit comments

Comments
 (0)