[Fwd: wav_player.c: PJMEDIA_EWAVEUNSUPP when playing file with extra info after RIFF chunk (1.4.5)]

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

 



Hi Truong,

File format should be with below information then only pjsip will play.

Mono
16k byte per sample.
8k samples per second

the file which is provided by you is 32k byte per second ,16 k samples per
second  which is not supported by pjsip.

regards,
Abdul.

On Mon, Nov 9, 2009 at 11:59 AM, Truong Thanh Quang <quangtt at softend.vn>wrote:

>
> This attached file was played well with most player, but pjsip.
>
> -------- Original Message --------  Subject: wav_player.c:
> PJMEDIA_EWAVEUNSUPP when playing file with extra info after RIFF chunk
> (1.4.5)  Date: Wed, 04 Nov 2009 09:55:39 +0700  From: Truong Thanh Quang
> <quangtt at softend.vn> <quangtt at softend.vn>  To: pjsip at lists.pjsip.org
>
> Hi Benny,
>
> I currently facing this problem when playing wave file with extra info
> saved in wave file after RIFF chunk (this file was edited by CoolEdit
> Pro 2.0):
>
> wave_player.c: 316
>    /* Validate length. */
>     if (wave_hdr.data_hdr.len != fport->fsize - fport->start_data) {
>     pj_file_close(fport->fd);
>     return PJMEDIA_EWAVEUNSUPP;
>     }
>
> I think, it should be that:
> 1) wave_player.c: 316
>    /* Validate length. */
>     if (wave_hdr.data_hdr.len > fport->fsize - fport->start_data) {
>     pj_file_close(fport->fd);
>     return PJMEDIA_EWAVEUNSUPP;
>     }
>     fport->fsize = wave_hdr.data_hdr.len + fport->start_data;If (Wave_hdr.data_hdr.len + fport->start_data < file_len -> OK because maybe there are non-audio info after RIFF chunk)
>
> 2) wave_player.c: 219
> 	if (size > fport->fsize - fport->fpos)
> 		size = fport->fsize - fport->fpos;
> 	size_left -= size;
> 	fport->fpos += size;
>
> Thanks for your help!
> Quang.
>
>
>
>
> _______________________________________________
> 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
>
>


-- 
thanks & regards,
Abdul Khadar Shaik,
M: 94 93 23 79 42 (or) 98 48 48 19 56
O: 040-39849500 -  2093 (Ext)
Pyro Networks Pvt Ltd,
Jublee Hills, Rd No 92
Hyderabad - A.P.
India
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20091109/ea761db5/attachment.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