summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorYamit Mehta <ymehta@codeaurora.org>2015-09-02 14:42:03 +0530
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:24:56 -0600
commit1a1c264acc42a195ff88fab50a2890e32cc96e1c (patch)
tree1543d07029c7c63f917f83b139acf1ded79bb7cc /media
parent91864379f93720df83de739979ff8ceadd6020a9 (diff)
downloadframeworks_av-1a1c264acc42a195ff88fab50a2890e32cc96e1c.zip
frameworks_av-1a1c264acc42a195ff88fab50a2890e32cc96e1c.tar.gz
frameworks_av-1a1c264acc42a195ff88fab50a2890e32cc96e1c.tar.bz2
libstagefright: Increase raw decoder buffers to 8
For WAV clips with wrong header values, the first attempt at PCM offloading is unsuccessful. This leads to the creation of a raw decoder and another attempt at offloading is tried with decoded PCM offload. This attempt succeeds, and the graph now has a GenericSource, NuPlayerDecoder and NuPlayerRenderer in it. Raw decoder has 4 output buffers, but this is not enough to fill the data at the rate NuPlayerRenderer needs for offloading. Fix this by increasing the buffer count for raw decoder. Change-Id: I29acc6b35fa9d5ab94e1df551f4cd89685527162
Diffstat (limited to 'media')
-rw-r--r--media/libstagefright/codecs/raw/SoftRaw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/codecs/raw/SoftRaw.h b/media/libstagefright/codecs/raw/SoftRaw.h
index 015c4a3..94b0ef1 100644
--- a/media/libstagefright/codecs/raw/SoftRaw.h
+++ b/media/libstagefright/codecs/raw/SoftRaw.h
@@ -43,7 +43,7 @@ protected:
private:
enum {
- kNumBuffers = 4
+ kNumBuffers = 8
};
bool mSignalledError;