fix bug in framer that causes the occasional segfault

This commit is contained in:
Nick Foster 2011-06-01 20:14:45 -07:00
parent e9cf22eb33
commit ebd74a2587

View File

@ -64,6 +64,7 @@ int air_modes_framer::work(int noutput_items,
float *outraw = (float *) output_items[0]; float *outraw = (float *) output_items[0];
//unsigned char *outattrib = (unsigned char *) output_items[0]; //unsigned char *outattrib = (unsigned char *) output_items[0];
int size = noutput_items - d_check_width*2; int size = noutput_items - d_check_width*2;
if(size < 0) return 0;
float reference_level; float reference_level;
framer_packet_type packet_attrib; framer_packet_type packet_attrib;
std::vector<pmt::pmt_t> tags; std::vector<pmt::pmt_t> tags;