msm: vidc: Allow adaptive B frame encode for hevc

Both H264 and HEVC can support adaptive B frame
encoding.

Change-Id: I4b51a224d9ed9bb173f40ea5c4c919ff2800a85c
This commit is contained in:
Priyanka Gujjula 2021-05-24 15:02:49 +05:30
commit f0556555c7

View file

@ -2501,7 +2501,8 @@ int msm_venc_set_intra_period(struct msm_vidc_inst *inst)
intra_period.pframes = gop_size->val;
if (!max_layer->val && codec == V4L2_PIX_FMT_H264) {
/* max_layer 0/1 indicates absence of layer encoding */
if (max_layer->val < 2) {
/*
* At this point we've already made decision on bframe.
* Control value gives updated bframe value.