size_t written, need;
struct private_fecdec_data *pfd = fn->private_data;
enum fec_group_usability u = group_is_usable(fg, pfd);
- char *buf = NULL, *p;
+ char *buf = NULL;
if (u == FEC_GROUP_UNUSABLE) {
PARA_INFO_LOG("dropping unusable group %d\n", fg->h.group_num);
if (need > btr_pool_unused(pfd->btrp))
return -E_FECDEC_OVERRUN;
btr_pool_get_buffer(pfd->btrp, &buf);
- p = buf;
if (u == FEC_GROUP_USABLE_WITH_HEADER) {
PARA_INFO_LOG("writing audio file header\n");
written = 0;
btr_copy(fg->data[i], n, pfd->btrp, fn->btrn);
written += n;
}
- p += written;
}
written = 0;
for (; i < fg->h.data_slices_per_group; i++) {
btr_copy(fg->data[i], n, pfd->btrp, fn->btrn);
written += n;
}
- p += written;
return 0;
}