From 1140241a09361e20b836cb1c76523fb13672517c Mon Sep 17 00:00:00 2001 From: Praveen Chavan <pchavan@codeaurora.org> Date: Fri, 23 Jan 2015 14:48:16 -0800 Subject: [PATCH] msm_vidc: Update frame-height along with buffer-size after reconfig For the streams with height lesser than minimum required height(96), decoder initiates a reconfig to indicate client about new size. For clients that calculate output buffer-size based on frame dimensions, resulting buffer sizes could be small and eventually rejected b/ 18528130 Change-Id: I17cf166a40f77fcea74e7d0c19af801e6e6244d5 Signed-off-by: Praveen Chavan <pchavan@codeaurora.org> Signed-off-by: c_sridur <sridur@codeaurora.org> --- drivers/video/msm/vidc/1080p/ddl/vcd_ddl_properties.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/msm/vidc/1080p/ddl/vcd_ddl_properties.c b/drivers/video/msm/vidc/1080p/ddl/vcd_ddl_properties.c index 34b13a77f7b1..7705734bb6f0 100644 --- a/drivers/video/msm/vidc/1080p/ddl/vcd_ddl_properties.c +++ b/drivers/video/msm/vidc/1080p/ddl/vcd_ddl_properties.c @@ -2088,7 +2088,7 @@ u32 ddl_set_default_decoder_buffer_req(struct ddl_decoder_data *decoder, input_buf_req->sz = (1024 * 1024 * 2); input_buf_req->align = DDL_LINEAR_BUFFER_ALIGN_BYTES; decoder->min_input_buf_req = *input_buf_req; - if (frame_height_actual) { + if (frame_height_actual && frame_size->height > MDP_MIN_TILE_HEIGHT) { frame_size->height = frame_height_actual; ddl_calculate_stride(frame_size, !decoder->progressive_only); } -- GitLab