diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2011-06-20 04:06:19 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2011-06-20 04:06:19 +0000 |
commit | ebf909976fa14cc872e1ce4e7d934b14c44b6fc1 (patch) | |
tree | 1155680b465472ae86a70893fa74effd65832a8e /pjmedia/src/pjmedia-codec/passthrough.c | |
parent | 3eb3a07542e7cb413cffb8f5825d90deafcc38a2 (diff) |
Fixed #1307:
- Fixed AMR NO_DATA frame length definition in amr_helper.h.
- Fixed bug packing/parsing AMR SID frames in processing SID type indicator (STI).
- Enabled native VAD in IPP AMR-NB.
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3589 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/src/pjmedia-codec/passthrough.c')
-rw-r--r-- | pjmedia/src/pjmedia-codec/passthrough.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pjmedia/src/pjmedia-codec/passthrough.c b/pjmedia/src/pjmedia-codec/passthrough.c index 73eed891..8eab2f7e 100644 --- a/pjmedia/src/pjmedia-codec/passthrough.c +++ b/pjmedia/src/pjmedia-codec/passthrough.c @@ -266,6 +266,8 @@ static pj_status_t pack_amr ( codec_private_t *codec_data, } info->good_quality = 1; info->mode = setting->enc_mode; + if (info->frame_type == SID_FT) + info->STI = (sf->data[4] >> 4) & 1; frames[i].buf = sf->data; frames[i].size = len; |