diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-07-10 21:25:38 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-07-23 22:53:29 +0200 |
commit | 890efee2b80d5b3b5eb087d1f2a472854f66afe3 (patch) | |
tree | dd2c02b73703c6ee97320428f96e699d6343c4e1 /libavcodec/binkdsp.h | |
parent | 708890e78f3e8ef0497d37ae6851d4b432854568 (diff) | |
download | ffmpeg-890efee2b80d5b3b5eb087d1f2a472854f66afe3.tar.gz |
avcodec/h264_loopfilter: Fix incorrect function parameter array size
filter_mb_mbaff_edgev() and filter_mb_mbaff_edgecv()
have a function parameter whose expected size depends upon
another parameter: It is 2 * bsi + 1 (with bsi always being 1 or 2).
This array is declared as const int16_t[7], yet some of the callers
with bsi == 1 call it with only an const int16_t[4] available.
This leads to -Wstringop-overread warnings from GCC 12.1.
This commit fixes these by replacing [7] with [/* 2 * bsi + 1 */],
so that the expected range and its dependence on bsi is immediately
visible.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/binkdsp.h')
0 files changed, 0 insertions, 0 deletions