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

Commit 97a25663 authored by Nipun Kwatra's avatar Nipun Kwatra Committed by Android (Google) Code Review
Browse files

Merge "Use software encoder for time lapse capture."

parents 7bb66f32 077cba41
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -949,9 +949,11 @@ status_t StagefrightRecorder::setupVideoEncoder(const sp<MediaWriter>& writer) {
    OMXClient client;
    CHECK_EQ(client.connect(), OK);

    uint32_t encoder_flags = (mCaptureTimeLapse) ? OMXCodec::kPreferSoftwareCodecs : 0;
    sp<MediaSource> encoder = OMXCodec::Create(
            client.interface(), enc_meta,
            true /* createEncoder */, cameraSource);
            true /* createEncoder */, cameraSource,
            NULL, encoder_flags);
    if (encoder == NULL) {
        return UNKNOWN_ERROR;
    }