summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--omx/videoencode/omx_h264_enc/inc/omx_H264videoencoderutils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/omx/videoencode/omx_h264_enc/inc/omx_H264videoencoderutils.h b/omx/videoencode/omx_h264_enc/inc/omx_H264videoencoderutils.h
index 8ce942b..9a1541f 100644
--- a/omx/videoencode/omx_h264_enc/inc/omx_H264videoencoderutils.h
+++ b/omx/videoencode/omx_h264_enc/inc/omx_H264videoencoderutils.h
@@ -30,6 +30,7 @@
/* For Baseline Profile :: FLAG to indicate Constrained Baseline profile in the Bitstream generated by codec
conforming to the H264Standard */
#define OMX_H264_SET_CONSTRAINT_SET1_FLAG 0x14
+#define OMX_H264_SET_CONSTRAINT_SET1b_FLAG 0x15
#define OMX_H264_DISBALE_ALL_CONSTRAINT_SET_FLAGS 0x0
/* OMX Component Version */
@@ -353,6 +354,9 @@ typedef enum PARAMS_UPDATE_STATUS {
break;\
case OMX_VIDEO_AVCLevel1b :\
_pCompPvtStruct_->pVidEncStaticParams->videnc2Params.level = IH264_LEVEL_1b;\
+ if (((OMX_VIDEO_PARAM_AVCTYPE *)_pParamStruct_)->eProfile == OMX_VIDEO_AVCProfileBaseline) {\
+ _pCompPvtStruct_->pVidEncStaticParams->constraintSetFlags = OMX_H264_SET_CONSTRAINT_SET1b_FLAG;\
+ }\
break;\
case OMX_VIDEO_AVCLevel11 :\
_pCompPvtStruct_->pVidEncStaticParams->videnc2Params.level = IH264_LEVEL_11;\