diff options
author | Niklas Haas <git@haasn.dev> | 2024-10-10 11:57:44 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2024-11-21 12:47:43 +0100 |
commit | 10d1be262126f1699a89b54cf5f23a5370c57cb5 (patch) | |
tree | 74220475712f9494a548f87ca2713d5bd4f3c1e6 /libswscale/utils.c | |
parent | 55d5eae411b5b29e27ab0b4fbbeac71f656a69b3 (diff) | |
download | ffmpeg-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/utils.c')
-rw-r--r-- | libswscale/utils.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c index 5c21f9de4a..f71c63c17f 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -1228,8 +1228,6 @@ SwsContext *sws_alloc_context(void) { SwsInternal *c = av_mallocz(sizeof(SwsInternal)); - av_assert0(offsetof(SwsInternal, redDither) + DITHER32_INT == offsetof(SwsInternal, dither32)); - if (c) { c->av_class = &ff_sws_context_class; av_opt_set_defaults(c); |