diff options
author | Martin Storsjö <martin@martin.st> | 2024-06-26 11:16:30 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2024-06-27 11:06:23 +0300 |
commit | 75e3b81f75b778286db7257a0ec4af74913ea67f (patch) | |
tree | 979ce77f87c96f4c40693d8547338658b90d0741 | |
parent | 10801166589ab49ca2793cea306fcf3e5654995e (diff) | |
download | ffmpeg-75e3b81f75b778286db7257a0ec4af74913ea67f.tar.gz |
avcodec/vvcdec: Fix compiling with MSVC 2022 17.8 and older
Versions of MSVC older than 17.9 error out here with the following
error:
src/libavcodec/vvc/filter.c(815): error C2059: syntax error: '}'
src/libavcodec/vvc/filter.c(832): error C2065: 'all_zero_bs': undeclared identifier
src/libavcodec/vvc/filter.c(836): error C2065: 'all_zero_bs': undeclared identifier
This was a regression from 5b9320b209c727ab2df3e76f77aad676f986c8e4.
Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r-- | libavcodec/vvc/filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vvc/filter.c b/libavcodec/vvc/filter.c index 2cadaaaf22..7ffcb29f47 100644 --- a/libavcodec/vvc/filter.c +++ b/libavcodec/vvc/filter.c @@ -812,7 +812,7 @@ static void vvc_deblock(const VVCLocalContext *lc, int x0, int y0, const int rs, for (int y = y0; y < y_end; y += (DEBLOCK_STEP << vs)) { for (int x = x0 ? x0 : grid; x < x_end; x += grid) { const uint8_t horizontal_ctu_edge = !vertical && !(x % ctb_size); - int32_t bs[4], beta[4], tc[4] = { }, all_zero_bs = 1; + int32_t bs[4], beta[4], tc[4] = { 0 }, all_zero_bs = 1; uint8_t max_len_p[4], max_len_q[4]; for (int i = 0; i < DEBLOCK_STEP >> (2 - vs); i++) { |