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

Commit 146de8a3 authored by Lajos Molnar's avatar Lajos Molnar Committed by android-build-merger
Browse files

stagefright: don\'t yet default to highest AVC profile

am: 4c6fe667

Change-Id: I707f0a604ca35af389b3c6519a497fcaed8f3408
parents dd2eb288 4c6fe667
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -4277,8 +4277,9 @@ status_t ACodec::setupAVCEncoderParameters(const sp<AMessage> &msg) {
        h264type.eProfile = static_cast<OMX_VIDEO_AVCPROFILETYPE>(profile);
        h264type.eLevel = static_cast<OMX_VIDEO_AVCLEVELTYPE>(level);
    } else {
        // Use largest supported profile for AVC recording if profile is not specified.
        h264type.eProfile = OMX_VIDEO_AVCProfileBaseline;
#if 0   /* DON'T YET DEFAULT TO HIGHEST PROFILE */
        // Use largest supported profile for AVC recording if profile is not specified.
        for (OMX_VIDEO_AVCPROFILETYPE profile : {
                OMX_VIDEO_AVCProfileHigh, OMX_VIDEO_AVCProfileMain }) {
            if (verifySupportForProfileAndLevel(profile, 0) == OK) {
@@ -4286,6 +4287,7 @@ status_t ACodec::setupAVCEncoderParameters(const sp<AMessage> &msg) {
                break;
            }
        }
#endif
    }

    ALOGI("setupAVCEncoderParameters with [profile: %s] [level: %s]",