[FFmpeg-devel] [PATCH 102/114] avcodec/intrax8: Replace always-false check by assert
Andreas Rheinhardt
andreas.rheinhardt at gmail.com
Tue Nov 10 12:58:24 EET 2020
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
libavcodec/intrax8.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/libavcodec/intrax8.c b/libavcodec/intrax8.c
index f385423dc1..bd00a3e027 100644
--- a/libavcodec/intrax8.c
+++ b/libavcodec/intrax8.c
@@ -115,11 +115,7 @@ static av_cold int x8_vlc_init(void)
init_or_vlc(j_orient_vlc[1][i], x8_orient_lowquant_table[i][0]);
#undef init_or_vlc
- if (offset != sizeof(table) / sizeof(VLC_TYPE) / 2) {
- av_log(NULL, AV_LOG_ERROR, "table size %"SIZE_SPECIFIER" does not match needed %i\n",
- sizeof(table) / sizeof(VLC_TYPE) / 2, offset);
- return AVERROR_INVALIDDATA;
- }
+ av_assert2(offset == FF_ARRAY_ELEMS(table));
return 0;
}
--
2.25.1
More information about the ffmpeg-devel
mailing list