Merge "Fix slice address zero for not first slice in pic" into lmp-dev

am: 114aff802c

Change-Id: I6a33a254a2db3695b5a3cb05cee19c06285fc053
This commit is contained in:
Naveen Kumar P 2017-11-03 19:05:33 +00:00 committed by android-build-merger
commit ad70f9c5e2

View file

@ -357,7 +357,7 @@ IHEVCD_ERROR_T ihevcd_parse_slice_header(codec_t *ps_codec,
slice_address = value;
/* If slice address is greater than the number of CTBs in a picture,
* ignore the slice */
if(value >= ps_sps->i4_pic_size_in_ctb)
if(value >= ps_sps->i4_pic_size_in_ctb || value <= 0)
return IHEVCD_IGNORE_SLICE;
}
else