aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/x86/swscale.c
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2024-10-10 11:57:44 +0200
committerNiklas Haas <git@haasn.dev>2024-11-21 12:47:43 +0100
commit10d1be262126f1699a89b54cf5f23a5370c57cb5 (patch)
tree74220475712f9494a548f87ca2713d5bd4f3c1e6 /libswscale/x86/swscale.c
parent55d5eae411b5b29e27ab0b4fbbeac71f656a69b3 (diff)
downloadffmpeg-10d1be262126f1699a89b54cf5f23a5370c57cb5.tar.gz
swscale/internal: use static_assert for enforcing offsets
Instead of sprinkling av_assert0 into random init functions. Sponsored-by: Sovereign Tech Fund Signed-off-by: Niklas Haas <git@haasn.dev>
Diffstat (limited to 'libswscale/x86/swscale.c')
-rw-r--r--libswscale/x86/swscale.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libswscale/x86/swscale.c b/libswscale/x86/swscale.c
index ceafdf4aef..40bfe4a2f6 100644
--- a/libswscale/x86/swscale.c
+++ b/libswscale/x86/swscale.c
@@ -791,10 +791,6 @@ switch(c->dstBpc){ \
if(c->flags & SWS_FULL_CHR_H_INT) {
- /* yuv2gbrp uses the SwsInternal for yuv coefficients
- if struct offsets change the asm needs to be updated too */
- av_assert0(offsetof(SwsInternal, yuv2rgb_y_offset) == 40292);
-
#define YUV2ANYX_FUNC_CASE(fmt, name, opt) \
case fmt: \
c->yuv2anyX = ff_yuv2##name##_full_X_##opt; \