This fixes test failures in fate-cbs-hevc-* in certain configurations since c53f9f436440be4e18.
Unified · Split
| @@ -552,7 +552,7 @@ static int FUNC(st_ref_pic_set)(CodedBitstreamContext *ctx, RWContext *rw, · 551 unmodified lines | |||
| 552 | flags(use_delta_flag[j], 1, j); | 552 | flags(use_delta_flag[j], 1, j); |
| 553 | else | 553 | else |
| 554 | infer(use_delta_flag[j], 1); | 554 | infer(use_delta_flag[j], 1); |
| 555 | if (current->use_delta_flag[i]) | 555 | if (current->use_delta_flag[j]) |
| 556 | ++num_ref_pics; | 556 | ++num_ref_pics; |
| 557 | } | 557 | } |
| 558 | if (num_ref_pics >= HEVC_MAX_DPB_SIZE) { | 558 | if (num_ref_pics >= HEVC_MAX_DPB_SIZE) { |