diff options
author | Harish Mahendrakar <harish.mahendrakar@ittiam.com> | 2019-09-16 16:10:55 -0700 |
---|---|---|
committer | Ray Essick <essick@google.com> | 2019-09-19 08:43:56 -0700 |
commit | 42f70ae4ef53a5fb663e43725000bacb5dc41d9c (patch) | |
tree | 71bbffb3ce6c0167937f484739702c5502bc252d | |
parent | 61646846b3c26789d0cc5d2a18b58ed8e94cd58a (diff) | |
download | libhevc-42f70ae4ef53a5fb663e43725000bacb5dc41d9c.tar.gz |
decoder: Reset slice header at start of slice header decode
Reset slice header to zero, to avoid using invalid slice header
contents from prior headers parsed.
Bug: 140692129
Test: poc in bug
Change-Id: Ib2b7c006069b0226b5f2d741f9da7b681be26f82
-rw-r--r-- | decoder/ihevcd_parse_slice_header.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/ihevcd_parse_slice_header.c b/decoder/ihevcd_parse_slice_header.c index 2ef174c..f08aa64 100644 --- a/decoder/ihevcd_parse_slice_header.c +++ b/decoder/ihevcd_parse_slice_header.c @@ -314,7 +314,7 @@ IHEVCD_ERROR_T ihevcd_parse_slice_header(codec_t *ps_codec, } ps_slice_hdr = ps_codec->s_parse.ps_slice_hdr_base + (ps_codec->s_parse.i4_cur_slice_idx & (MAX_SLICE_HDR_CNT - 1)); - + memset(ps_slice_hdr, 0, sizeof(*ps_slice_hdr)); if((ps_pps->i1_dependent_slice_enabled_flag) && (!first_slice_in_pic_flag)) |