|
@@ -1804,7 +1804,8 @@ static int coda_s_ctrl(struct v4l2_ctrl *ctrl)
|
|
|
break;
|
|
break;
|
|
|
case V4L2_CID_MPEG_VIDEO_H264_PROFILE:
|
|
case V4L2_CID_MPEG_VIDEO_H264_PROFILE:
|
|
|
/* TODO: switch between baseline and constrained baseline */
|
|
/* TODO: switch between baseline and constrained baseline */
|
|
|
- ctx->params.h264_profile_idc = 66;
|
|
|
|
|
|
|
+ if (ctx->inst_type == CODA_INST_ENCODER)
|
|
|
|
|
+ ctx->params.h264_profile_idc = 66;
|
|
|
break;
|
|
break;
|
|
|
case V4L2_CID_MPEG_VIDEO_H264_LEVEL:
|
|
case V4L2_CID_MPEG_VIDEO_H264_LEVEL:
|
|
|
/* nothing to do, this is set by the encoder */
|
|
/* nothing to do, this is set by the encoder */
|