mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
Merge "msm: venc: fix ltrmode for unsupported codec/RC type"
This commit is contained in:
commit
8ce34de1fe
1 changed files with 1 additions and 1 deletions
|
|
@ -3738,6 +3738,7 @@ int msm_venc_set_ltr_mode(struct msm_vidc_inst *inst)
|
|||
return -EINVAL;
|
||||
}
|
||||
hdev = inst->core->device;
|
||||
ctrl = get_ctrl(inst, V4L2_CID_MPEG_VIDC_VIDEO_LTRCOUNT);
|
||||
|
||||
codec = get_v4l2_codec(inst);
|
||||
if (!(codec == V4L2_PIX_FMT_HEVC || codec == V4L2_PIX_FMT_H264)) {
|
||||
|
|
@ -3752,7 +3753,6 @@ int msm_venc_set_ltr_mode(struct msm_vidc_inst *inst)
|
|||
goto disable_ltr;
|
||||
}
|
||||
|
||||
ctrl = get_ctrl(inst, V4L2_CID_MPEG_VIDC_VIDEO_LTRCOUNT);
|
||||
if (!ctrl->val)
|
||||
return 0;
|
||||
if (ctrl->val > inst->capability.cap[CAP_LTR_COUNT].max) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue