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

Commit 6e79793c authored by Andreas Blaesius's avatar Andreas Blaesius Committed by Zhao Wei Liew
Browse files

Allow to use baseline profile for AVC recording

- some encoder seem to crash using higher h264 profiles

Change-Id: I2beb881e76519f872e3e99957f8b981eeaa53b56
parent 0d8957b0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3216,7 +3216,7 @@ status_t ACodec::setupAVCEncoderParameters(const sp<AMessage> &msg) {

    // XXX
    // Allow higher profiles to be set since the encoder seems to support
#if 0
#ifdef USE_AVC_BASELINE_PROFILE
    if (h264type.eProfile != OMX_VIDEO_AVCProfileBaseline) {
        ALOGW("Use baseline profile instead of %d for AVC recording",
            h264type.eProfile);
+4 −0
Original line number Diff line number Diff line
@@ -231,6 +231,10 @@ ifeq ($(DTS_CODEC_M_), true)
  LOCAL_CFLAGS += -DDTS_CODEC_M_
endif

ifeq ($(TARGET_USE_AVC_BASELINE_PROFILE), true)
LOCAL_CFLAGS += -DUSE_AVC_BASELINE_PROFILE
endif

ifeq ($(BOARD_USE_SAMSUNG_COLORFORMAT), true)
LOCAL_CFLAGS += -DUSE_SAMSUNG_COLORFORMAT