diff options
author | Lajos Molnar <lajos@google.com> | 2014-08-14 19:55:25 -0700 |
---|---|---|
committer | Lajos Molnar <lajos@google.com> | 2014-08-14 19:58:44 -0700 |
commit | cd39746f8d83bb3f12e8f613e77c3c3b5f77c077 (patch) | |
tree | 9b5d9e50e89557c8fd1c7fa82426c0de11abab0c /media | |
parent | 261562316c1b652ea697c99c0f24a54112bd0385 (diff) | |
download | frameworks_av-cd39746f8d83bb3f12e8f613e77c3c3b5f77c077.zip frameworks_av-cd39746f8d83bb3f12e8f613e77c3c3b5f77c077.tar.gz frameworks_av-cd39746f8d83bb3f12e8f613e77c3c3b5f77c077.tar.bz2 |
stagefright: allow specifying flac copmression level by 'complexity'
Bug: 11990470
Change-Id: I428961cc654b768773814078f753e2e67243f186
Diffstat (limited to 'media')
-rw-r--r-- | media/libstagefright/ACodec.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/media/libstagefright/ACodec.cpp b/media/libstagefright/ACodec.cpp index b77e1cd..b44d5cc 100644 --- a/media/libstagefright/ACodec.cpp +++ b/media/libstagefright/ACodec.cpp @@ -1419,8 +1419,10 @@ status_t ACodec::configureCodec( } else { if (encoder) { if (!msg->findInt32( + "complexity", &compressionLevel) && + !msg->findInt32( "flac-compression-level", &compressionLevel)) { - compressionLevel = 5;// default FLAC compression level + compressionLevel = 5; // default FLAC compression level } else if (compressionLevel < 0) { ALOGW("compression level %d outside [0..8] range, " "using 0", |