Fixed bug in resample port: put/get buffers are allocated with the wrong size (thanks Danya)

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@703 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Benny Prijono 2006-09-11 18:51:54 +00:00
parent 8a36a0380f
commit 65b395f2a4
1 changed files with 2 additions and 2 deletions

View File

@ -84,10 +84,10 @@ PJ_DEF(pj_status_t) pjmedia_resample_port_create( pj_pool_t *pool,
* We need separate buffer for get_frame() and put_frame() since
* both functions may run simultaneously.
*/
rport->get_buf = pj_pool_alloc(pool, rport->base.info.bytes_per_frame);
rport->get_buf = pj_pool_alloc(pool, dn_port->info.bytes_per_frame);
PJ_ASSERT_RETURN(rport->get_buf != NULL, PJ_ENOMEM);
rport->put_buf = pj_pool_alloc(pool, rport->base.info.bytes_per_frame);
rport->put_buf = pj_pool_alloc(pool, dn_port->info.bytes_per_frame);
PJ_ASSERT_RETURN(rport->put_buf != NULL, PJ_ENOMEM);