struct ast_jb *jb = &chan->jb;
const struct ast_jb_impl *jbimpl = jb->impl;
void *jbobj = jb->jbobj;
- struct ast_frame *f, finterp;
+ struct ast_frame *f, finterp = { .frametype = AST_FRAME_VOICE, };
long now;
int interpolation_len, res;
case JB_IMPL_INTERP:
/* interpolate a frame */
f = &finterp;
- f->frametype = AST_FRAME_VOICE;
f->subclass.codec = jb->last_format;
- f->datalen = 0;
f->samples = interpolation_len * 8;
- f->mallocd = 0;
f->src = "JB interpolation";
- f->data.ptr = NULL;
f->delivery = ast_tvadd(jb->timebase, ast_samp2tv(jb->next, 1000));
f->offset = AST_FRIENDLY_OFFSET;
/* deliver the interpolated frame */