diff options
Diffstat (limited to 'src/rtp_profile_opus.cc')
-rw-r--r-- | src/rtp_profile_opus.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rtp_profile_opus.cc b/src/rtp_profile_opus.cc index 102d175..3fc0de9 100644 --- a/src/rtp_profile_opus.cc +++ b/src/rtp_profile_opus.cc @@ -144,13 +144,14 @@ int profile_opus_unpack(struct lrtp_profile_t *profile, const RTP &rtp, std::list<outputframe_t *> &framelist) { - struct lrtp_profile_opus_t *p = (struct lrtp_profile_opus_t *)profile; + //struct lrtp_profile_opus_t *p = (struct lrtp_profile_opus_t *)profile; outputframe_t *of = new outputframe_t(); of->size = rtp.payloadSize(); char *buf = (char*)malloc(of->size); of->size = rtp.payload(buf, of->size); of->data = buf; + of->ts = rtp.timestamp(); framelist.push_back(of); |