Merge pull request #479 from AugJujube/master

fix issue 475
This commit is contained in:
jcdr428 2021-10-19 08:59:45 +01:00 committed by GitHub
commit f78f6f3bc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -570,6 +570,8 @@ int HevcSpsUnit::short_term_ref_pic_set(int stRpsIdx)
if (nb_positive_pics > 64) if (nb_positive_pics > 64)
return 1; return 1;
rps->num_delta_pocs = rps->num_negative_pics + nb_positive_pics; rps->num_delta_pocs = rps->num_negative_pics + nb_positive_pics;
if (rps->num_delta_pocs > 64)
return 1;
if (rps->num_delta_pocs) if (rps->num_delta_pocs)
{ {
prev = 0; prev = 0;