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