Skip to content

Commit daf5c4b

Browse files
committed
修改AEC_CACHE_LEN大小10240
1 parent cdbee77 commit daf5c4b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ijkmedia/ijkplayer/android/ijkplayer_jni.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
static JavaVM* g_jvm;
5454

5555
// for AEC
56-
#define AEC_CACHE_LEN 102400
56+
#define AEC_CACHE_LEN 10240
5757
// typedef unsigned char byte;
5858
// static byte pcm_arr[AEC_CACHE_LEN];
5959
uint8_t pcm_arr[AEC_CACHE_LEN];
@@ -1274,7 +1274,7 @@ IjkMediaPlayer_getPcmData(JNIEnv *env, jobject thiz, jbyteArray jarr_pcm)
12741274
jsize in_size = (*env)->GetArrayLength(env, jarr_pcm);
12751275
if (in_size < AEC_CACHE_LEN)
12761276
{
1277-
ALOGE("Jeffer jni input size < 204800\n");
1277+
ALOGE("Jeffer jni input size < 10240\n");
12781278
ijkmp_set_aec_status(mp, false);
12791279
return ret;
12801280
}

ijkmedia/ijkplayer/ff_ffplay.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
// for AEC
9191
#include <pthread.h>
9292
pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
93-
#define AEC_CACHE_LEN 102400
93+
#define AEC_CACHE_LEN 10240
9494

9595
// FIXME: 9 work around NDKr8e or gcc4.7 bug
9696
// isnan() may not recognize some double NAN, so we test both double and float

0 commit comments

Comments
 (0)