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:
parent
8a36a0380f
commit
65b395f2a4
|
@ -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);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue