From a0036e742b076775cd39aa21822a0c858592323b Mon Sep 17 00:00:00 2001 From: Harish Mahendrakar Date: Wed, 8 Jul 2020 17:20:27 -0700 Subject: [PATCH] decoder: Allow stride to be smaller than decode width When cropping is enabled, application can request a stride that is larger than display width but smaller than decode width. Bug: 160397536 Test: stagefright -sS Change-Id: I453b2de0474f3ae4d021084729c33d52fc1090dc --- decoder/ih264d_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decoder/ih264d_api.c b/decoder/ih264d_api.c index 3a73938..3dfcbf2 100644 --- a/decoder/ih264d_api.c +++ b/decoder/ih264d_api.c @@ -3253,7 +3253,7 @@ WORD32 ih264d_set_params(iv_obj_t *dec_hdl, void *pv_api_ip, void *pv_api_op) ret = IV_FAIL; } - if(ps_ctl_ip->u4_disp_wd >= ps_dec->u2_pic_wd) + if(ps_ctl_ip->u4_disp_wd >= ps_dec->u2_disp_width) { ps_dec->u4_app_disp_width = ps_ctl_ip->u4_disp_wd; }