OSDN Git Service
(root)
/
android-x86
/
frameworks-av.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b7b910
)
Re-implement Format_frameSize(), to support non-power-of-2
author
Glenn Kasten
<gkasten@google.com>
Thu, 6 Mar 2014 16:23:11 +0000
(08:23 -0800)
committer
Glenn Kasten
<gkasten@google.com>
Thu, 6 Mar 2014 16:52:32 +0000
(08:52 -0800)
Change-Id: I671bd4f03ce70de685770fd7992e2e023133c9b4
media/libnbaio/NBAIO.cpp
patch
|
blob
|
history
diff --git
a/media/libnbaio/NBAIO.cpp
b/media/libnbaio/NBAIO.cpp
index
cfcd8b4
..
16e7df5
100644
(file)
--- a/
media/libnbaio/NBAIO.cpp
+++ b/
media/libnbaio/NBAIO.cpp
@@
-24,8
+24,7
@@
namespace android {
size_t Format_frameSize(const NBAIO_Format& format)
{
- // FIXME The sample format is hard-coded to AUDIO_FORMAT_PCM_16_BIT
- return Format_channelCount(format) * sizeof(short);
+ return format.mFrameSize;
}
int Format_frameBitShift(const NBAIO_Format& format)