mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
Expand codec bitfield from 32 bits to 64 bits.
Reviewboard: https://reviewboard.asterisk.org/r/416/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@227580 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -409,14 +409,14 @@ static void jb_get_and_deliver(struct ast_channel *chan)
|
||||
case JB_IMPL_DROP:
|
||||
jb_framelog("\tJB_GET {now=%ld}: %s frame with ts=%ld and len=%ld\n",
|
||||
now, jb_get_actions[res], f->ts, f->len);
|
||||
jb->last_format = f->subclass;
|
||||
jb->last_format = f->subclass.codec;
|
||||
ast_frfree(f);
|
||||
break;
|
||||
case JB_IMPL_INTERP:
|
||||
/* interpolate a frame */
|
||||
f = &finterp;
|
||||
f->frametype = AST_FRAME_VOICE;
|
||||
f->subclass = jb->last_format;
|
||||
f->subclass.codec = jb->last_format;
|
||||
f->datalen = 0;
|
||||
f->samples = interpolation_len * 8;
|
||||
f->mallocd = 0;
|
||||
@@ -480,7 +480,7 @@ static int create_jb(struct ast_channel *chan, struct ast_frame *frr)
|
||||
jb->next = jbimpl->next(jbobj);
|
||||
|
||||
/* Init last format for a first time. */
|
||||
jb->last_format = frr->subclass;
|
||||
jb->last_format = frr->subclass.codec;
|
||||
|
||||
/* Create a frame log file */
|
||||
if (ast_test_flag(jbconf, AST_JB_LOG)) {
|
||||
|
Reference in New Issue
Block a user