DO NOT MERGE Consume bytes for sps with unsupported resolution

For an sps with unsupported resolution, consume the bytes.
Otherwise application will feed the same sps again
and again.

Bug: 65718319
Test: ran POC before/after
Change-Id: I7b2d35b8f31d830f9495682b86b6924bdd2f95d0
Merged-In: Ic81990030f7e6afd8cf3ebd387c5be7443b148b9
Merged-In: I02295e813f37a963d7f6216bb8a7e86648485681
This commit is contained in:
Ray Essick 2017-10-18 10:13:24 -07:00
parent 6587d735fa
commit 34989f97fe

View file

@ -609,8 +609,7 @@ WORD32 ihevcd_decode(iv_obj_t *ps_codec_obj, void *pv_api_ip, void *pv_api_op)
continue;
}
if(((IHEVCD_FAIL == ret) && (ps_codec->i4_error_code == IVD_RES_CHANGED)) ||
(IHEVCD_UNSUPPORTED_DIMENSIONS == ret))
if((IHEVCD_FAIL == ret) && (ps_codec->i4_error_code == IVD_RES_CHANGED))
{
break;
}