[FFmpeg-user] libavcodec/libsvtav1.c:438:70: error: too many arguments to function call, expected 2, have 3

Moritz Barsnick barsnick at gmx.net
Fri Jan 31 12:27:51 EET 2025


On Fri, Jan 31, 2025 at 18:21:44 +0900, 桃源老師 wrote:
> I'm building ffmpeg(current git head) but get the following error, and then can't step up next...
>
> libavcodec/libsvtav1.c:438:70: error: too many arguments to function call, expected 2, have 3
>   438 |     svt_ret = svt_av1_enc_init_handle(&svt_enc->svt_handle, svt_enc, &svt_enc->enc_params);

The API of svtav1 changed recently:
https://gitlab.com/AOMediaCodec/SVT-AV1/-/commit/988e930c1083ce518ead1d364e3a486e9209bf73

Until ffmpeg fixes the problem, you need to either use a slightly older
version of svtav1, or patch ffmpeg with the patch included in that
commit:

https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/988e930c1083ce518ead1d364e3a486e9209bf73/.gitlab/workflows/linux/ffmpeg_n7_fix.patch

Cheers,
Moritz


More information about the ffmpeg-user mailing list