Changeset 703


Ignore:
Timestamp:
Sep 11, 2006 6:51:54 PM (15 years ago)
Author:
bennylp
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/resample_port.c

    r633 r703  
    8585     * both functions may run simultaneously. 
    8686     */ 
    87     rport->get_buf = pj_pool_alloc(pool, rport->base.info.bytes_per_frame); 
     87    rport->get_buf = pj_pool_alloc(pool, dn_port->info.bytes_per_frame); 
    8888    PJ_ASSERT_RETURN(rport->get_buf != NULL, PJ_ENOMEM); 
    8989 
    90     rport->put_buf = pj_pool_alloc(pool, rport->base.info.bytes_per_frame); 
     90    rport->put_buf = pj_pool_alloc(pool, dn_port->info.bytes_per_frame); 
    9191    PJ_ASSERT_RETURN(rport->put_buf != NULL, PJ_ENOMEM); 
    9292 
Note: See TracChangeset for help on using the changeset viewer.