mirror of
https://github.com/ittiam-systems/libhevc.git
synced 2026-08-15 15:22:36 +07:00
[automerger] Add missing return check for short_term_ref_pic_set() am: 299cceb9e4 am: 2e8ae23656 am: 7ecb4083b9 am: 4fe71a567e am: 1561dc0fa9
Change-Id: I378a6e4f6f70931f36fd74acb02846096679e367
This commit is contained in:
commit
2b9fa38bb8
2 changed files with 16 additions and 7 deletions
|
|
@ -1565,7 +1565,13 @@ IHEVCD_ERROR_T ihevcd_parse_sps(codec_t *ps_codec)
|
|||
ps_sps->i1_num_short_term_ref_pic_sets = value;
|
||||
|
||||
for(i = 0; i < ps_sps->i1_num_short_term_ref_pic_sets; i++)
|
||||
ihevcd_short_term_ref_pic_set(ps_bitstrm, &ps_sps->as_stref_picset[0], ps_sps->i1_num_short_term_ref_pic_sets, i, &ps_sps->as_stref_picset[i]);
|
||||
{
|
||||
ret = ihevcd_short_term_ref_pic_set(ps_bitstrm, &ps_sps->as_stref_picset[0], ps_sps->i1_num_short_term_ref_pic_sets, i, &ps_sps->as_stref_picset[i]);
|
||||
if (ret != IHEVCD_SUCCESS)
|
||||
{
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
BITS_PARSE("long_term_ref_pics_present_flag", value, ps_bitstrm, 1);
|
||||
ps_sps->i1_long_term_ref_pics_present_flag = value;
|
||||
|
|
|
|||
|
|
@ -436,12 +436,15 @@ IHEVCD_ERROR_T ihevcd_parse_slice_header(codec_t *ps_codec,
|
|||
}
|
||||
else
|
||||
{
|
||||
ihevcd_short_term_ref_pic_set(ps_bitstrm,
|
||||
&ps_sps->as_stref_picset[0],
|
||||
ps_sps->i1_num_short_term_ref_pic_sets,
|
||||
ps_sps->i1_num_short_term_ref_pic_sets,
|
||||
&ps_slice_hdr->s_stref_picset);
|
||||
|
||||
ret = ihevcd_short_term_ref_pic_set(ps_bitstrm,
|
||||
&ps_sps->as_stref_picset[0],
|
||||
ps_sps->i1_num_short_term_ref_pic_sets,
|
||||
ps_sps->i1_num_short_term_ref_pic_sets,
|
||||
&ps_slice_hdr->s_stref_picset);
|
||||
if (ret != IHEVCD_SUCCESS)
|
||||
{
|
||||
return ret;
|
||||
}
|
||||
st_rps_idx = ps_sps->i1_num_short_term_ref_pic_sets;
|
||||
num_neg_pics = ps_slice_hdr->s_stref_picset.i1_num_neg_pics;
|
||||
num_pos_pics = ps_slice_hdr->s_stref_picset.i1_num_pos_pics;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue