[FFmpeg-cvslog] cbs_h265: Fix use of an uninitialized variable
Martin Storsjö
git at videolan.org
Fri May 22 21:57:30 EEST 2020
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Thu May 21 11:03:35 2020 +0300| [1f7c8d319b72df1bb01b459e9cb40662c061f7df] | committer: Martin Storsjö
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 at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1f7c8d319b72df1bb01b459e9cb40662c061f7df
---
libavcodec/cbs_h265_syntax_template.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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) {
More information about the ffmpeg-cvslog
mailing list