mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
msm: vidc: Fix p-frame count
Fix p-frame count during intra-period setting for HEVC session without layer encoding. Change-Id: I796cac16fbb0538012f9fc97262e1877285e1803 CRs-Fixed: 2735233 Signed-off-by: Amit Shekhar <ashekhar@codeaurora.org>
This commit is contained in:
parent
1fd9cfcf2e
commit
59ca4e2365
1 changed files with 2 additions and 1 deletions
|
|
@ -2485,8 +2485,9 @@ int msm_venc_set_intra_period(struct msm_vidc_inst *inst)
|
|||
V4L2_CID_MPEG_VIDC_VIDEO_HEVC_MAX_HIER_CODING_LAYER);
|
||||
codec = get_v4l2_codec(inst);
|
||||
|
||||
intra_period.pframes = gop_size->val;
|
||||
|
||||
if (!max_layer->val && codec == V4L2_PIX_FMT_H264) {
|
||||
intra_period.pframes = gop_size->val;
|
||||
/*
|
||||
* At this point we've already made decision on bframe.
|
||||
* Control value gives updated bframe value.
|
||||
|
|
|
|||
Loading…
Reference in a new issue