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 | 456db75516efc889e1ee4e5e16021e77c03b0941 (patch) | |
tree | b8f60c27fc81543563104a9cc2ed9edd8e7a5883 /cmds | |
parent | b7802d9ee9c9dbb471ae4f010bd67ba1aaa9f264 (diff) | |
download | frameworks_av-456db75516efc889e1ee4e5e16021e77c03b0941.zip frameworks_av-456db75516efc889e1ee4e5e16021e77c03b0941.tar.gz frameworks_av-456db75516efc889e1ee4e5e16021e77c03b0941.tar.bz2 |
Support encoding amr-wb content in stagefright.
Diffstat (limited to 'cmds')
-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; } } |