diff options
author | Benny Prijono <bennylp@teluu.com> | 2011-10-14 06:41:51 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2011-10-14 06:41:51 +0000 |
commit | 8eee3eb1e69ace9d26463b843a932edfd6a16c12 (patch) | |
tree | 86073bc5f29e3f5db7aec5556e9d6ef4e07eed14 /pjmedia/src/pjmedia-codec | |
parent | de1679edb534fafe595aa0dbcfd41086c4d51277 (diff) |
Support for OpenCORE AMR-NB codec on Windows. This closes #1388
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3817 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/src/pjmedia-codec')
-rw-r--r-- | pjmedia/src/pjmedia-codec/opencore_amrnb.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pjmedia/src/pjmedia-codec/opencore_amrnb.c b/pjmedia/src/pjmedia-codec/opencore_amrnb.c index ea10d83b..eba53215 100644 --- a/pjmedia/src/pjmedia-codec/opencore_amrnb.c +++ b/pjmedia/src/pjmedia-codec/opencore_amrnb.c @@ -300,7 +300,7 @@ static pj_status_t amr_default_attr( pjmedia_codec_factory *factory, attr->info.frm_ptime = 20; attr->info.pt = PJMEDIA_RTP_PT_AMR; - attr->setting.frm_per_pkt = 4; + attr->setting.frm_per_pkt = 2; attr->setting.vad = 1; attr->setting.plc = 1; @@ -809,6 +809,12 @@ static pj_status_t amr_codec_recover( pjmedia_codec *codec, } #endif - +#if defined(_MSC_VER) && PJMEDIA_AUTO_LINK_OPENCORE_AMR_LIBS +# if PJMEDIA_OPENCORE_AMR_BUILT_WITH_GCC +# pragma comment( lib, "libopencore-amrnb.a") +# else +# error Unsupported OpenCORE AMR library, fix here +# endif +#endif #endif |