[FFmpeg-devel] [PATCH 09/19] swscale/internal: use static_assert for enforcing offsets
Michael Niedermayer
michael at niedermayer.cc
Sun Oct 13 19:46:32 EEST 2024
On Fri, Oct 11, 2024 at 12:26:56AM +0200, Niklas Haas wrote:
> From: Niklas Haas <git at haasn.dev>
>
> Instead of sprinkling av_assert0 into random init functions.
>
> Sponsored-by: Sovereign Tech Fund
> Signed-off-by: Niklas Haas <git at haasn.dev>
> ---
> libswscale/swscale_internal.h | 9 +++++++++
> libswscale/utils.c | 3 ++-
> 2 files changed, 11 insertions(+), 1 deletion(-)
braks build on ARM
make
CC libswscale/alphablend.o
In file included from src/libavutil/internal.h:39:0,
from src/libavutil/common.h:50,
from src/libavutil/avutil.h:301,
from src/libswscale/swscale.h:33,
from src/libswscale/swscale_internal.h:28,
from src/libswscale/alphablend.c:21:
src/libswscale/swscale_internal.h:713:1: error: static assertion failed: "yuv2rgb_y_offset must be updated in x86 asm"
static_assert(offsetof(SwsInternal, yuv2rgb_y_offset) == 40292,
^
make: *** [src/ffbuild/common.mak:81: libswscale/alphablend.o] Error 1
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
If you fake or manipulate statistics in a paper in physics you will never
get a job again.
If you fake or manipulate statistics in a paper in medicin you will get
a job for life at the pharma industry.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20241013/70298850/attachment.sig>
More information about the ffmpeg-devel
mailing list