Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9d198b59 authored by Yahan Zhou's avatar Yahan Zhou
Browse files

Set minimal AVC encoder level to AVCLevel1

There is a CTS test asking for a AVCLevel1 encoder. Lower the minimal
level to AVCLevel1 in low resolution so that it can pass the test.

BUG: 37101765

Test: run cts -m CtsMediaTestCases -t
android.media.cts.MediaRecorderTest#testProfileAvcBaselineLevel1

Change-Id: Id04d3389be8d6761c6d2040a7bea54a2753a7ee7
(cherry picked from commit 085bdc87edeb5304d9dc604a4d3aa4de67cb6009)
parent c5c8e5b7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -629,8 +629,10 @@ OMX_ERRORTYPE SoftAVC::initEncoder() {
        level = 30;
    } else if (displaySizeY > (352 * 288)) {
        level = 21;
    } else {
    } else if (displaySizeY > (176 * 144)) {
        level = 20;
    } else {
        level = 10;
    }
    mAVCEncLevel = MAX(level, mAVCEncLevel);