From cd39746f8d83bb3f12e8f613e77c3c3b5f77c077 Mon Sep 17 00:00:00 2001 From: Lajos Molnar Date: Thu, 14 Aug 2014 19:55:25 -0700 Subject: stagefright: allow specifying flac copmression level by 'complexity' Bug: 11990470 Change-Id: I428961cc654b768773814078f753e2e67243f186 --- media/libstagefright/ACodec.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'media') 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", -- cgit v1.1