浏览代码

Merge "video: driver: Correct max mbps calc for slicing"

qctecmdr 3 年之前
父节点
当前提交
f07dfda71d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      driver/vidc/src/msm_vidc_control.c

+ 1 - 1
driver/vidc/src/msm_vidc_control.c

@@ -1346,7 +1346,7 @@ int msm_vidc_adjust_slice_count(void *instance, struct v4l2_ctrl *ctrl)
 	mbpf = NUM_MBS_PER_FRAME(output_height, output_width);
 	mbps = NUM_MBS_PER_SEC(output_height, output_width, fps);
 	max_mbpf = NUM_MBS_PER_FRAME(max_height, max_width);
-	max_mbps = NUM_MBS_PER_SEC(max_height, max_width, fps);
+	max_mbps = NUM_MBS_PER_SEC(max_height, max_width, MAX_SLICES_FRAME_RATE);
 
 	if (mbpf > max_mbpf || mbps > max_mbps) {
 		adjusted_value = V4L2_MPEG_VIDEO_MULTI_SLICE_MODE_SINGLE;