aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-05-28 21:06:20 +0200
committerHarald Welte <laforge@gnumonks.org>2017-05-28 21:06:20 +0200
commit84f4f86fdfefb8e98b05643d73299b75144eac7a (patch)
treeb19521df9e920f569b86dd7754767a8b639767f7
parentfa93cec8a145eed684c6a9ce3764f8d213756366 (diff)
fmt_rtp_hr_ietf.c: Fix error encoding this format
We used the wrong length constant during encoding of RTP-HR IETF style.
-rw-r--r--src/fmt_rtp_hr_ietf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fmt_rtp_hr_ietf.c b/src/fmt_rtp_hr_ietf.c
index 57da9c9..3e8e6a3 100644
--- a/src/fmt_rtp_hr_ietf.c
+++ b/src/fmt_rtp_hr_ietf.c
@@ -52,7 +52,7 @@ rtp_hr_ietf_from_canon(uint8_t *dst, const uint8_t *src, unsigned int src_len)
/* copy codec payload */
memcpy(dst+1, src, src_len);
- return HR_CANON_LEN;
+ return HR_LEN;
}
/* conversion function: canonical format -> RTP payload */