aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-10 20:36:51 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-07-23 22:53:29 +0200
commit708890e78f3e8ef0497d37ae6851d4b432854568 (patch)
tree8c9509ae144fca0dcbb2bce727146eae10b9c40a /doc
parentc807ee6975d9dc6f783f2071bf5cb30d663b53ae (diff)
downloadffmpeg-708890e78f3e8ef0497d37ae6851d4b432854568.tar.gz
avcodec/snowenc: Don't pass int[2] as parameter declared as int[3]
check_block_inter() currently does this when calling check_block(). This leads to a -Wstringop-overflow= warning when compiling with GCC 12.1. Given that the main part of the body of check_block() consists of an "if (intra) { ... } else { ... }" which is true iff check_block() is not called from check_block_inter(), it makes sense to fix this by just inlining check_block() check_block_inter() and turning check_block() into a new check_block_intra() (with the inter parts removed, of course). This should also not make much of a difference for the generated code given that both check_block() as well as check_block_inter() are already marked as av_always_inline, so this commit follows this route to fix the issue. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions