Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
ortp
Commits
7b39874d
Commit
7b39874d
authored
May 31, 2011
by
Simon Morlat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix possible divide by zero
parent
eb4f5437
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/rtcp.c
src/rtcp.c
+1
-2
No files found.
src/rtcp.c
View file @
7b39874d
...
...
@@ -239,7 +239,7 @@ static void report_block_init(report_block_t *b, RtpSession *session){
stream->hwrcv_seq_at_last_SR,
stream->hwrcv_since_last_SR
);*/
if
(
stream
->
hwrcv_s
eq_at
_last_SR
!=
0
){
if
(
stream
->
hwrcv_s
ince
_last_SR
!=
0
){
if
(
session
->
flags
&
RTCP_OVERRIDE_LOST_PACKETS
)
{
/* If the test mode is enabled, replace the lost packet field with the test vector value set by rtp_session_rtcp_set_lost_packet_value() */
packet_loss
=
session
->
lost_packets_test_vector
;
...
...
@@ -367,7 +367,6 @@ static mblk_t * make_rr(RtpSession *session){
return
cm
;
}
static
mblk_t
*
make_sr
(
RtpSession
*
session
){
mblk_t
*
cm
=
NULL
;
mblk_t
*
sdes
=
NULL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment