diff options
author | Andreas Huber <andih@google.com> | 2012-06-20 12:46:38 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2012-06-20 12:46:38 -0700 |
commit | 39a3113539f9bcc86a8efe562780c23ac8731098 (patch) | |
tree | 50b33abb023da5b993b3b79105aabc07abea7284 /media/libstagefright/codecs/aacdec | |
parent | eb15716b59020f342df62bce5b293f0603b94861 (diff) | |
download | frameworks_av-39a3113539f9bcc86a8efe562780c23ac8731098.zip frameworks_av-39a3113539f9bcc86a8efe562780c23ac8731098.tar.gz frameworks_av-39a3113539f9bcc86a8efe562780c23ac8731098.tar.bz2 |
Revert input buffer count for the SoftAAC* decoders back to 4.
This improves the netflix bandwidth change responsiveness.
With the old count of 32 the audio decoder running at a higher
priority would starve the video decoder for about 1 sec while
draining the input data.
I haven't been able to break any stream playback using MediaCodec
using the lower count, even though I'm sure I had a good reason
to increase it in the first place (see bug 6478823)
Change-Id: I7fd3e71794b0cc1570ea9d27d1d869ab1e1750c4
related-to-bug: 6685031
Diffstat (limited to 'media/libstagefright/codecs/aacdec')
-rw-r--r-- | media/libstagefright/codecs/aacdec/SoftAAC.h | 2 | ||||
-rw-r--r-- | media/libstagefright/codecs/aacdec/SoftAAC2.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/media/libstagefright/codecs/aacdec/SoftAAC.h b/media/libstagefright/codecs/aacdec/SoftAAC.h index c0789ab..2e75005 100644 --- a/media/libstagefright/codecs/aacdec/SoftAAC.h +++ b/media/libstagefright/codecs/aacdec/SoftAAC.h @@ -45,7 +45,7 @@ protected: private: enum { - kNumInputBuffers = 32, + kNumInputBuffers = 4, kNumOutputBuffers = 4, }; diff --git a/media/libstagefright/codecs/aacdec/SoftAAC2.h b/media/libstagefright/codecs/aacdec/SoftAAC2.h index ac379f4..0353196 100644 --- a/media/libstagefright/codecs/aacdec/SoftAAC2.h +++ b/media/libstagefright/codecs/aacdec/SoftAAC2.h @@ -44,7 +44,7 @@ protected: private: enum { - kNumInputBuffers = 32, + kNumInputBuffers = 4, kNumOutputBuffers = 4, }; |