From: Keith Mok Date: Wed, 17 Feb 2016 00:58:42 +0000 (-0800) Subject: stagefright-plugins: enlarge audio/video queue X-Git-Tag: android-x86-7.1-r1~45 X-Git-Url: http://git.osdn.net/view?p=android-x86%2Fexternal-stagefright-plugins.git;a=commitdiff_plain;h=32e5c387d32882012f775566e166fd468ef8743c stagefright-plugins: enlarge audio/video queue Some video file have large offset between video and audio data, we need to enlarge the buffer size in order to be able to play back those files. CYNGNOS-2061 Change-Id: Ia44f27e64733186750c058a5cb67985e812ee6c7 --- diff --git a/extractor/FFmpegExtractor.cpp b/extractor/FFmpegExtractor.cpp index 26034ea..403bef6 100644 --- a/extractor/FFmpegExtractor.cpp +++ b/extractor/FFmpegExtractor.cpp @@ -47,8 +47,8 @@ #include "FFmpegExtractor.h" -#define MAX_QUEUE_SIZE (15 * 1024 * 1024) -#define MIN_AUDIOQ_SIZE (20 * 16 * 1024) +#define MAX_QUEUE_SIZE (40 * 1024 * 1024) +#define MIN_AUDIOQ_SIZE (2 * 1024 * 1024) #define MIN_FRAMES 5 #define EXTRACTOR_MAX_PROBE_PACKETS 200 #define FF_MAX_EXTRADATA_SIZE ((1 << 28) - FF_INPUT_BUFFER_PADDING_SIZE)