shadowsnap / doubango

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

Crash on Audio Call using Opencore-amr with 64-bit support #420

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Follow the steps provided in the wiki page to include opencore-amr codec 
(add opencore-amr binaries for armv7, armv7s, arm64, etc and set 
-DHAVE_OPENCORE_AMR to 1)
2.  Perform a call (the phone rings but when the other side answer the call, 
the app crashes)

Note that we are using opencore-amr previously without 64-bit support and it is 
working properly. Since Apple requires that we include 64-bit support in our 
future apps this February 2015, we tested opencore-amr with 64-bit support and 
found out that it is not working.  Any help is much appreciated.

What is the expected output? What do you see instead?
Call must proceed.  App crashes when the call is answered.

What version of the product are you using? On what operating system?
We are using Doubango 2.0 on iOS 8.1.2

Please provide any additional information below.
According to Xcode, there is a Bad Access in this line of code (the 
if-condition statement) found in tdav_codec_amr.c file.

if ((ret_size = Encoder_Interface_Encode(amr->encoder, amr->encoder_mode, 
in_data, outbuf, 0)) <= 0) {
    TSK_DEBUG_ERROR("Encoder_Interface_Encode() failed");
    goto bail;
}

Thanks.

Original issue reported on code.google.com by actomac...@voyagerinnovation.com on 7 Jan 2015 at 6:25

GoogleCodeExporter commented 9 years ago
Looks the same issue is also present if using G.729. It also works properly 
with 32bit but causes a crash when using 64bit.

Original comment by massimo....@gmail.com on 13 Jan 2015 at 11:13