diff options
author | StefanEng86 <stefanen@kth.se> | 2015-10-06 18:05:00 +0200 |
---|---|---|
committer | StefanEng86 <stefanen@kth.se> | 2015-10-07 15:49:33 +0200 |
commit | cc131832aadaf4c7323517697305d5beef8b4512 (patch) | |
tree | 29760b12c1c8964fc3671aafa268ea18889392a5 /res/res_rtp_asterisk.c | |
parent | 52f413f7096b4c6b9cc577aad60b6442e926508d (diff) |
res/res_rtp_asterisk.c: Fix incorrect assignment of frame->subclass.frame_ending
In ast_rtp_read, the value of the variable 'mark' which we try to assign to a
frame->subclass.frame_ending may be 0, 1 or (1<<23), but we should translate
it to 0 or 1.
ASTERISK-25451 #close
Change-Id: I53bdf5c026041730184a6a809009c028549ce626
Diffstat (limited to 'res/res_rtp_asterisk.c')
-rw-r--r-- | res/res_rtp_asterisk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index 2e285ebef..b4a472f8a 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -4702,7 +4702,7 @@ static struct ast_frame *ast_rtp_read(struct ast_rtp_instance *instance, int rtc rtp->f.delivery.tv_sec = 0; rtp->f.delivery.tv_usec = 0; /* Pass the RTP marker bit as bit */ - rtp->f.subclass.frame_ending = mark; + rtp->f.subclass.frame_ending = mark ? 1 : 0; } else if (ast_format_get_type(rtp->f.subclass.format) == AST_MEDIA_TYPE_TEXT) { /* TEXT -- samples is # of samples vs. 1000 */ if (!rtp->lastitexttimestamp) |