diff options
author | Andreas Huber <andih@google.com> | 2009-09-08 10:19:21 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2009-09-08 12:55:50 -0700 |
commit | ee606e66b0c1bc3527ecaffbbe95486d2ff5009e (patch) | |
tree | a4375d314da752999a37958e18c19cdc31aadd88 /cmds/stagefright | |
parent | a7d0cf490a81ba2fc75b50fbf53b1fabcf6bb631 (diff) | |
download | frameworks_base-ee606e66b0c1bc3527ecaffbbe95486d2ff5009e.zip frameworks_base-ee606e66b0c1bc3527ecaffbbe95486d2ff5009e.tar.gz frameworks_base-ee606e66b0c1bc3527ecaffbbe95486d2ff5009e.tar.bz2 |
Support encoding amr-wb content in stagefright.
Diffstat (limited to 'cmds/stagefright')
-rw-r--r-- | cmds/stagefright/record.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/stagefright/record.cpp b/cmds/stagefright/record.cpp index 81a1c0a..4751580 100644 --- a/cmds/stagefright/record.cpp +++ b/cmds/stagefright/record.cpp @@ -228,7 +228,7 @@ int main(int argc, char **argv) { #endif sp<MetaData> encMeta = new MetaData; - encMeta->setCString(kKeyMIMEType, 1 ? "audio/3gpp" : "audio/mp4a-latm"); + encMeta->setCString(kKeyMIMEType, 1 ? "audio/amr-wb" : "audio/mp4a-latm"); encMeta->setInt32(kKeySampleRate, kSampleRate); encMeta->setInt32(kKeyChannelCount, kNumChannels); encMeta->setInt32(kKeyMaxInputSize, 8192); @@ -248,7 +248,7 @@ int main(int argc, char **argv) { buffer->release(); buffer = NULL; - if (++n == 10000) { + if (++n == 100) { break; } } |