(no subject)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

 
I?m having the same problem like http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2008-December/005795.html ([pjsip] media port issue: Assertion output_buf_len ... failed )
I?m receiving an assert when connecting the ports using pjmedia_master_port_create() using G.711 20 ms. (2 frames per packet ) in both legs.
 
Assertion failed: output_buf_len >= (input->size << 1), file ..\src\pjmedia\g711.c, line 555

static pj_status_t get_frame( pjmedia_port *port, pjmedia_frame *frame)
{
...
   /* Decode */
    frame_in.buf = channel->out_pkt;
    frame_in.size = frame_size;                          // frame_in.size = 80;
    frame_in.bit_info = bit_info;
    frame_in.type = PJMEDIA_FRAME_TYPE_AUDIO;  /* ignored */
 
    frame_out.buf = p_out_samp + samples_count;       
    frame_out.size = frame->size - samples_count*BYTES_PER_SAMPLE; // frame_out.size = 160 - 80 * 2
    status = stream->codec->op->decode( stream->codec, &frame_in,
                                                           frame_out.size, &frame_out);//frame_out.size == 0
?
 
I thought that frame->size must be 320 but is set to 160, if I overwrite bytes_per_frame in some port (media_port0 or media_port1) with 320 before call pjmedia_master_port_create, it works fine.


 
Example:

media_port0->info.bytes_per_frame = 320;

status = pjmedia_master_port_create(
            inv->pool,  
            media_port0,
            media_port1,  
            0,
            &(Slot->MasterPort));
 I'm doing some wrong initialization?
 
Thanks,
Diego
 

_________________________________________________________________
?Quer?s saber c?mo va a estar el clima ma?ana? Ingres? ahora a MSN
http://tiempo.ar.msn.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090316/b2b6d477/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux