summaryrefslogtreecommitdiff
path: root/libavcodec/cbs_h265_syntax_template.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2020-05-21 11:03:35 +0300
committerMartin Storsjö <martin@martin.st>2020-05-22 21:01:29 +0300
commit1f7c8d319b72df1bb01b459e9cb40662c061f7df (patch)
treee10ebb88e956194d625e4d4db04551983b674631 /libavcodec/cbs_h265_syntax_template.c
parent1e8ed181e389dbc82b4b29afbee44a63dc76ce10 (diff)
downloadffmpeg-1f7c8d319b72df1bb01b459e9cb40662c061f7df.tar.gz
cbs_h265: Fix use of an uninitialized variable
This fixes test failures in fate-cbs-hevc-* in certain configurations since c53f9f436440be4e18. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/cbs_h265_syntax_template.c')
-rw-r--r--libavcodec/cbs_h265_syntax_template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cbs_h265_syntax_template.c b/libavcodec/cbs_h265_syntax_template.c
index 06a8e1cc2a..5b7d1aa837 100644
--- a/libavcodec/cbs_h265_syntax_template.c
+++ b/libavcodec/cbs_h265_syntax_template.c
@@ -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) {