aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-06-28 15:05:42 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-07-22 13:51:39 +0200
commit77ceaaf7f58487614d6fe1fb481144cb405f56b5 (patch)
tree58e071ea7bef939e8e2da11a2c6b27ee50c6f88d /openbsc
parent7bcbe2a9cc6f3dcba37b7e91ae54f8a719dbf63c (diff)
mgcp: Add a comment about the return of the function
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/libmgcp/mgcp_transcode.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/openbsc/src/libmgcp/mgcp_transcode.c b/openbsc/src/libmgcp/mgcp_transcode.c
index ed5f50be3..8ab9a04fd 100644
--- a/openbsc/src/libmgcp/mgcp_transcode.c
+++ b/openbsc/src/libmgcp/mgcp_transcode.c
@@ -500,5 +500,10 @@ int mgcp_transcoding_process_rtp(struct mgcp_endpoint *endp,
state->next_seq += 1;
state->next_time = ts_no + nsamples;
+ /*
+ * XXX: At this point we should always have consumed
+ * samples. So doing OSMO_ASSERT(nsamples > 0) and returning
+ * rtp_hdr_size should be fine.
+ */
return nsamples ? rtp_hdr_size : 0;
}