From 5bf127b94f38f9ec179e767f84716845365e719a Mon Sep 17 00:00:00 2001 From: Priyanka Gujjula Date: Fri, 8 Jan 2021 13:40:50 +0530 Subject: [PATCH] msm: vidc: Increase 10-bit enc o/p buffer size for <=360p Increase 10-bit enc bistream buffer size for <=360p. For 8-bit YUV size : w x h x 1.5 For 10-bit YUV size : w x h x 1.5 x 2 Change-Id: I6fddcf960b8b06fe6edbe4b8262374303a045530 Signed-off-by: Priyanka Gujjula --- msm/vidc/msm_vidc_buffer_calculations.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msm/vidc/msm_vidc_buffer_calculations.c b/msm/vidc/msm_vidc_buffer_calculations.c index 3052801b9589..2db5696313c7 100644 --- a/msm/vidc/msm_vidc_buffer_calculations.c +++ b/msm/vidc/msm_vidc_buffer_calculations.c @@ -1005,7 +1005,7 @@ u32 msm_vidc_calculate_enc_output_frame_size(struct msm_vidc_inst *inst) goto calc_done; if (mbs_per_frame <= NUM_MBS_360P) - goto calc_done; /* Default frame_size = YUVsize * 2 */ + (void)frame_size; /* Default frame_size = YUVsize * 2 */ else if (mbs_per_frame <= NUM_MBS_4k) frame_size = frame_size >> 2; else