diff options
author | Shiyou Yin <yinshiyou-hf@loongson.cn> | 2024-05-08 18:07:49 +0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2024-05-31 02:20:23 +0200 |
commit | 6b35fcacdb74bb36cfdf0f6e3d1cc4f28cae5207 (patch) | |
tree | 86a6acf2dcea77a930813cd5bf23963e573a05c9 | |
parent | 544acfa2c087e78f1295f1878b261bac0aa424a0 (diff) | |
download | ffmpeg-6b35fcacdb74bb36cfdf0f6e3d1cc4f28cae5207.tar.gz |
swscale: [loongarch] Fix undeclared functions prob.
Compile with '--disable-lasx', ‘lumRangeFromJpeg_lasx’ undeclared.
Reviewed-by: 金波 <jinbo@loongson.cn>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libswscale/loongarch/swscale_init_loongarch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libswscale/loongarch/swscale_init_loongarch.c b/libswscale/loongarch/swscale_init_loongarch.c index 3a5a7ee856..4af62ad9f8 100644 --- a/libswscale/loongarch/swscale_init_loongarch.c +++ b/libswscale/loongarch/swscale_init_loongarch.c @@ -41,6 +41,7 @@ av_cold void ff_sws_init_range_convert_loongarch(SwsContext *c) } } } +#if HAVE_LASX if (have_lasx(cpu_flags)) { if (c->srcRange != c->dstRange && !isAnyRGB(c->dstFormat)) { if (c->dstBpc <= 14) { @@ -54,6 +55,7 @@ av_cold void ff_sws_init_range_convert_loongarch(SwsContext *c) } } } +#endif // #if HAVE_LASX } av_cold void ff_sws_init_swscale_loongarch(SwsContext *c) |