Assertion failed: output_buf_len

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

 



Hi,

The G711 codec ptime is set to 10ms, any pjmedia port with ptime!=10ms
want to make use of the g711 codec should manage the ptime
syncronization, e.g: calling encode/decode multiple times with 10ms
length frames.

Regards,
nanang


2009/3/19 Diego Barreiro <dgbcnt at hotmail.com>:
> 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
>
> ________________________________
> Con Messenger pod?s ver si llegaron correos nuevos ?Conoc? todo lo nuevo del
> Messenger 2009!
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>



[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