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

Commit 1c6e16c0 authored by Andreas Blaesius's avatar Andreas Blaesius
Browse files

Allow to use baseline profile for AVC recording

- some encoder seem to crash using higher h264 profiles

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


    // XXX
    // XXX
    // Allow higher profiles to be set since the encoder seems to support
    // 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) {
    if (h264type.eProfile != OMX_VIDEO_AVCProfileBaseline) {
        ALOGW("Use baseline profile instead of %d for AVC recording",
        ALOGW("Use baseline profile instead of %d for AVC recording",
            h264type.eProfile);
            h264type.eProfile);
+4 −0
Original line number Original line Diff line number Diff line
@@ -173,6 +173,10 @@ ifeq ($(TARGET_BOARD_PLATFORM),omap4)
LOCAL_CFLAGS += -DBOARD_CANT_REALLOCATE_OMX_BUFFERS
LOCAL_CFLAGS += -DBOARD_CANT_REALLOCATE_OMX_BUFFERS
endif
endif


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

ifeq ($(call is-vendor-board-platform,QCOM),true)
ifeq ($(call is-vendor-board-platform,QCOM),true)
LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio
LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/mm-audio
ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER)),true)
ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXTN_FLAC_DECODER)),true)