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 <clip in bug>

Change-Id: I453b2de0474f3ae4d021084729c33d52fc1090dc
This commit is contained in:
Harish Mahendrakar 2020-07-08 17:20:27 -07:00
parent 083b9fc086
commit a0036e742b

View file

@ -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;
}