From cf52dc1e6c113f9e3c3599619a6af44b947d5b20 Mon Sep 17 00:00:00 2001 From: Priyanka Gujjula Date: Wed, 10 Nov 2021 12:04:08 +0530 Subject: [PATCH] video: driver: Correct max mbps calc for slicing Max mbps has to be calculated using max fps. Change-Id: Ic0e3b337c7327e9a9bd4ada6b2008ccb6fa1be04 Signed-off-by: Priyanka Gujjula --- driver/vidc/src/msm_vidc_control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/vidc/src/msm_vidc_control.c b/driver/vidc/src/msm_vidc_control.c index 3963595f90..33b0689f8d 100644 --- a/driver/vidc/src/msm_vidc_control.c +++ b/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;