Skip to content

Commit

Permalink
svtav1: switch to last known good commit
Browse files Browse the repository at this point in the history
unbreak ffmpeg build

```
libavcodec/libsvtav1.c: In function 'eb_enc_init':
libavcodec/libsvtav1.c:438:61: error: passing argument 2 of 'svt_av1_enc_init_handle' from incompatible pointer type [-Wincompatible-pointer-types]
  438 |     svt_ret = svt_av1_enc_init_handle(&svt_enc->svt_handle, svt_enc, &svt_enc->enc_params);
      |                                                             ^~~~~~~
      |                                                             |
      |                                                             SvtContext *
In file included from libavcodec/libsvtav1.c:25:
/opt/ffbuild/include/svt-av1/EbSvtAv1Enc.h:1128:31: note: expected 'EbSvtAv1EncConfiguration *' but argument is of type 'SvtContext *'
 1128 |     EbSvtAv1EncConfiguration *config_ptr); // config_ptr will be loaded with default params from the library
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
libavcodec/libsvtav1.c:438:15: error: too many arguments to function 'svt_av1_enc_init_handle'
  438 |     svt_ret = svt_av1_enc_init_handle(&svt_enc->svt_handle, svt_enc, &svt_enc->enc_params);
      |               ^~~~~~~~~~~~~~~~~~~~~~~
/opt/ffbuild/include/svt-av1/EbSvtAv1Enc.h:1122:20: note: declared here
 1122 | EB_API EbErrorType svt_av1_enc_init_handle(
      |                    ^~~~~~~~~~~~~~~~~~~~~~~
make: *** [ffbuild/common.mak:81: libavcodec/libsvtav1.o] Error 1
make: *** Waiting for unfinished jobs....
```

Signed-off-by: nanake <nanake@users.noreply.github.com>
  • Loading branch information
nanake committed Jan 20, 2025
1 parent a8aa952 commit d1e35d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts.d/50-svtav1.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

SVTAV1_REPO="https://gitlab.com/AOMediaCodec/SVT-AV1.git"
SVTAV1_COMMIT="988e930c1083ce518ead1d364e3a486e9209bf73"
SVTAV1_COMMIT="b76ad955ba5a8321b11855e5172741ec3e3a5dd8"

ffbuild_enabled() {
[[ $TARGET == win32 ]] && return -1
Expand Down

0 comments on commit d1e35d9

Please sign in to comment.