mirror of
https://github.com/ittiam-systems/libhevc.git
synced 2026-10-07 02:51:33 +07:00
Handle invalid slice_address in slice header
If an invalid slice_address was parsed, it was resulting in an incomplete slice header during decode stage. Fix this by not incrementing slice_idx for ignore slice error Bug: 32322258 Change-Id: I8638d7094d65f4409faa9b9e337ef7e7b64505de
This commit is contained in:
parent
063ce60457
commit
f4f3556e04
1 changed files with 1 additions and 0 deletions
|
|
@ -601,6 +601,7 @@ WORD32 ihevcd_decode(iv_obj_t *ps_codec_obj, void *pv_api_ip, void *pv_api_op)
|
|||
|
||||
if(IHEVCD_IGNORE_SLICE == ret)
|
||||
{
|
||||
ps_codec->s_parse.i4_cur_slice_idx = MAX(0, (ps_codec->s_parse.i4_cur_slice_idx - 1));
|
||||
ps_codec->pu1_inp_bitsbuf += (nal_ofst + nal_len);
|
||||
ps_codec->i4_bytes_remaining -= (nal_ofst + nal_len);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue