Commit 1f7c8d31 authored by Martin Storsjö's avatar Martin Storsjö

cbs_h265: Fix use of an uninitialized variable

This fixes test failures in fate-cbs-hevc-* in certain configurations
since c53f9f43.
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 1e8ed181
......@@ -552,7 +552,7 @@ static int FUNC(st_ref_pic_set)(CodedBitstreamContext *ctx, RWContext *rw,
flags(use_delta_flag[j], 1, j);
else
infer(use_delta_flag[j], 1);
if (current->use_delta_flag[i])
if (current->use_delta_flag[j])
++num_ref_pics;
}
if (num_ref_pics >= HEVC_MAX_DPB_SIZE) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment