diff options
Diffstat (limited to 'decoder')
-rw-r--r-- | decoder/ihevcd_parse_headers.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/decoder/ihevcd_parse_headers.c b/decoder/ihevcd_parse_headers.c index 4c38b0a..0f98094 100644 --- a/decoder/ihevcd_parse_headers.c +++ b/decoder/ihevcd_parse_headers.c @@ -1222,6 +1222,12 @@ IHEVCD_ERROR_T ihevcd_parse_sps(codec_t *ps_codec) ps_sps = (ps_codec->s_parse.ps_sps_base + MAX_SPS_CNT - 1); + /* Reset SPS to zero */ + { + WORD16 *pi2_scaling_mat = ps_sps->pi2_scaling_mat; + memset(ps_sps, 0, sizeof(sps_t)); + ps_sps->pi2_scaling_mat = pi2_scaling_mat; + } ps_sps->i1_sps_id = sps_id; ps_sps->i1_vps_id = vps_id; ps_sps->i1_sps_max_sub_layers = sps_max_sub_layers; |