From 7b6e7703cdeeecae28552f589f249a6ab7f6c4d2 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 29 May 2014 14:20:50 +0200 Subject: Make typedef for framelists. Add some error handling in SRTP class. Make new instance protection mechanism for SRTP. Make some error handling in lrtp public API. --- src/rtp_profile_amrwb.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rtp_profile_amrwb.cc') diff --git a/src/rtp_profile_amrwb.cc b/src/rtp_profile_amrwb.cc index 94084cf..7b02c11 100644 --- a/src/rtp_profile_amrwb.cc +++ b/src/rtp_profile_amrwb.cc @@ -222,7 +222,7 @@ int profile_amrwb_pack(struct lrtp_profile_t *profile, int profile_amrwb_unpack(struct lrtp_profile_t *profile, const RTP &rtp, - std::list &framelist) + oframelist_t &framelist) { //struct lrtp_profile_amrwb_t *p = (struct lrtp_profile_amrwb_t *)profile; @@ -244,7 +244,7 @@ int profile_amrwb_unpack(struct lrtp_profile_t *profile, char CMR = payload[0]; if(CMR != 15) { printf("CMR not 15\n"); - return UNPACK_ERROR; + return LRTP_UNPACK_ERROR; } // TODO: What to do if there are 0 frames (and therefore no header to set the -- cgit v1.2.3