OSDN Git Service

stagefright-plugins: enlarge audio/video queue
authorKeith Mok <kmok@cyngn.com>
Wed, 17 Feb 2016 00:58:42 +0000 (16:58 -0800)
committerSteve Kondik <shade@chemlab.org>
Sat, 20 Feb 2016 17:22:55 +0000 (09:22 -0800)
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

extractor/FFmpegExtractor.cpp

index 26034ea..403bef6 100644 (file)
@@ -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)