jfergie / imsdroid

Automatically exported from code.google.com/p/imsdroid
0 stars 0 forks source link

g729_decoder is having Segmentation fault #493

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
a) Before posting your issue you MUST answer to the questions otherwise it
will be rejected (invalid status) by us
b) Please check the issue tacker to avoid duplication
c) Please provide network capture (wireshark) or Android log (DDMS output)
if you want quick response

What steps will reproduce the problem?

1.execute(codec-g729-read-only/g729_decoder/decode.c) from 

svn checkout http://codec-g729.googlecode.com/svn/trunk/ codec-g729-read-only

2.we passing arguments like :/a.out output.cod encdec.wav 

3.Segmentation fault (core dumped)

What is the expected output? What do you see instead?

take encoded file as input( output.cod) decode to output file(encdec.wav)

What version of the product are you using? On what operating system?

for product version i gave the SVN PATH..
my os is : ubuntu 12.04 LTS 2GB ram intel cpu 

Please provide any additional information below.

for encoding == > (codec-g729-read-only/g729_coder/coder.c) 

it executes and give the encoded file

how can we know the is it encoding or not?

for DECODING

the give the Segmentation fault (core dumped) why ..?

the arguments are above and the gdb output is like this
=====================================================================
(gdb) run
Starting program: 
/home/kellton/Desktop/codec-g729-read-only/g729_decoder/source/decoder 

***********     ITU G.729 8 KBIT/S SPEECH CODER    ***********

------------------- Fixed point C simulation -----------------

------------ Version 3.3 (Release 2, November 2006) --------

Linear file    :  myoutput.cod

Program received signal SIGSEGV, Segmentation fault.
0x0804e71e in Pred_lt_3 (exc=0x8052c14, T0=27313, frac=0, L_subfr=40) at 
pred_lt3.c:51
51        s = L_mac(s, x1[-i], c1[k]);
(gdb) backtrace
#0  0x0804e71e in Pred_lt_3 (exc=0x8052c14, T0=27313, frac=0, L_subfr=40) at 
pred_lt3.c:51
#1  0x0804d73e in Decod_ld8k (parm=0xbffff18e, voicing=0, synth=0xbfffef74, 
A_t=0xbffff158, T0_first=0xbffff1b6) at dec_ld8k.c:186
#2  0x080498ca in main (argc=1, argv=0xbffff264) at decoder.c:140
============================================================

could you please help regarding this issue. how can i compile and execute 
DECODER to get the output from encoded file and how can i compare with original 
file.

i want to use this into my VOIP app i.e for Android/MAC/windows to AUDIO CODEC

could you please explain and help i am new to this..

thank you so much 
waiting for your reply

Original issue reported on code.google.com by indrasen...@gmail.com on 21 Nov 2013 at 12:07

GoogleCodeExporter commented 9 years ago
the above Segmentation fault (core dumped) occurred when we use our 
output.cod(this file is generated by 
codec-g729-read-only/g729_decoder/source/coder/coder.c only).

but if we use the original
(by default => codec-g729-read-nly/g729_decoder/source/decoder/output.cod ) 
from svn source path it works.

if we use other then this file it's crashed why...?

could please help me

Original comment by indrasen...@gmail.com on 22 Nov 2013 at 6:48