[automerger] Decoder: Signal IVD_RES_CHANGED error for change in crop params am: fdbbd60bfe am: 2c56677a61 am: 5f668de48b am: 80f7bce01d am: 4ec0aaf69b am: fea57ee069 am: a28e5a297c

am: 0cbc12f971

Change-Id: I4dc4129a18c12be075c7168f1de7a6cf549048c4
This commit is contained in:
Rakesh Kumar 2018-11-19 17:36:21 -08:00 • committed by android-build-merger
commit ca0f470122

View file

@ -1686,6 +1686,18 @@ IHEVCD_ERROR_T ihevcd_parse_sps(codec_t *ps_codec)
if((0 >= disp_wd) || (0 >= disp_ht))
return IHEVCD_INVALID_PARAMETER;
if((0 != ps_codec->u4_allocate_dynamic_done) &&
((ps_codec->i4_disp_wd != disp_wd) ||
(ps_codec->i4_disp_ht != disp_ht)))
{
if(0 == ps_codec->i4_first_pic_done)
{
return IHEVCD_INVALID_PARAMETER;
}
ps_codec->i4_reset_flag = 1;
return (IHEVCD_ERROR_T)IVD_RES_CHANGED;
}
ps_codec->i4_disp_wd = disp_wd;
ps_codec->i4_disp_ht = disp_ht;