just set data_size to zero.
int ret;
if ((ret = read_header(s)) < 0)
return ret;
+ *data_size = 0;
}
else
{
break;
}
case FN_QUIT:
- goto frame_done;
+ break;
}
+ *data_size = 0;
} else {
/* process audio command */
int residual_size = 0;
if (s->cur_chan == s->channels) {
samples = interleave_buffer(samples, s->channels, s->blocksize, s->decoded);
s->cur_chan = 0;
- goto frame_done;
+ *data_size = (int8_t *)samples - (int8_t *)data;
+ } else {
+ *data_size = 0;
}
}
}
-frame_done:
- *data_size = (int8_t *)samples - (int8_t *)data;
// s->last_blocksize = s->blocksize;
s->bitindex = get_bits_count(&s->gb) - 8*((get_bits_count(&s->gb))/8);