Merge "video: driver: modify key frame marking for hevc/avc codecs"

This commit is contained in:
qctecmdr
2022-04-01 11:33:47 -07:00
committad av Gerrit - the friendly Code Review server
förälder 8f0e12cc93 1933eb75bd
incheckning c1f317aa10

Visa fil

@@ -588,8 +588,7 @@ static int get_driver_buffer_flags(struct msm_vidc_inst *inst, u32 hfi_flags)
} else if (inst->hfi_frame_info.picture_type & HFI_PICTURE_B) {
driver_flags |= MSM_VIDC_BUF_FLAG_BFRAME;
} else if (inst->hfi_frame_info.picture_type & HFI_PICTURE_I) {
if (inst->codec == MSM_VIDC_VP9 || inst->codec == MSM_VIDC_AV1)
driver_flags |= MSM_VIDC_BUF_FLAG_KEYFRAME;
driver_flags |= MSM_VIDC_BUF_FLAG_KEYFRAME;
} else if (inst->hfi_frame_info.picture_type & HFI_PICTURE_CRA) {
driver_flags |= MSM_VIDC_BUF_FLAG_KEYFRAME;
} else if (inst->hfi_frame_info.picture_type & HFI_PICTURE_BLA) {