#define FOR_EACH_FECDEC_GROUP(g, d) for (g = (d)->groups; \
(g) - (d)->groups < NUM_FEC_GROUPS; (g)++)
-/** */
-#define UNUSED_GROUP_NUM 0xffffffff
-
static int group_complete(struct fecdec_group *fg)
{
- if (fg->h.group_num == UNUSED_GROUP_NUM)
- return 0;
- //PARA_INFO_LOG("received slices: %u, slices per group: %u\n", fg->num_received_slices, fg->h.data_slices_per_group);
return fg->num_received_slices >= fg->h.data_slices_per_group;
}
fg->num_slices = 0;
memset(&fg->h, 0, sizeof(struct fec_header));
fg->num_received_slices = 0;
- fg->h.group_num = UNUSED_GROUP_NUM;
}
static int find_group(struct fec_header *h,