diff options
Diffstat (limited to 'main/rtp.c')
-rw-r--r-- | main/rtp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/rtp.c b/main/rtp.c index 9dd40bf90..8fd056250 100644 --- a/main/rtp.c +++ b/main/rtp.c @@ -2525,6 +2525,9 @@ static int ast_rtcp_write(void *data) struct ast_rtp *rtp = data; int res; + if (!rtp || !rtp->rtcp) + return 0; + if (rtp->txcount > rtp->rtcp->lastsrtxcount) res = ast_rtcp_write_sr(data); else |