* [FFmpeg-devel] [PATCH] avcodec/libsvtav1: unbreak build with latest svtav1
@ 2025-02-22 5:14 Gyan Doshi
2025-02-22 13:17 ` Timo Rothenpieler
0 siblings, 1 reply; 3+ messages in thread
From: Gyan Doshi @ 2025-02-22 5:14 UTC (permalink / raw)
To: ffmpeg-devel
SVT-AV1 made a change in their public API in 988e930c but without a
version bump or any other accessible marker, thus breaking ffmpeg build
with current versions of SVT-AV1.
They have finally bumped versions a month later, so check added.
---
libavcodec/libsvtav1.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavcodec/libsvtav1.c b/libavcodec/libsvtav1.c
index 79b28eb4df..43fe531fde 100644
--- a/libavcodec/libsvtav1.c
+++ b/libavcodec/libsvtav1.c
@@ -435,7 +435,11 @@ static av_cold int eb_enc_init(AVCodecContext *avctx)
svt_enc->eos_flag = EOS_NOT_REACHED;
+#if SVT_AV1_CHECK_VERSION(3, 0, 0)
+ svt_ret = svt_av1_enc_init_handle(&svt_enc->svt_handle, &svt_enc->enc_params);
+#else
svt_ret = svt_av1_enc_init_handle(&svt_enc->svt_handle, svt_enc, &svt_enc->enc_params);
+#endif
if (svt_ret != EB_ErrorNone) {
return svt_print_error(avctx, svt_ret, "Error initializing encoder handle");
}
--
2.46.1
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [FFmpeg-devel] [PATCH] avcodec/libsvtav1: unbreak build with latest svtav1
2025-02-22 5:14 [FFmpeg-devel] [PATCH] avcodec/libsvtav1: unbreak build with latest svtav1 Gyan Doshi
@ 2025-02-22 13:17 ` Timo Rothenpieler
2025-02-22 13:29 ` Gyan Doshi
0 siblings, 1 reply; 3+ messages in thread
From: Timo Rothenpieler @ 2025-02-22 13:17 UTC (permalink / raw)
To: ffmpeg-devel
On 22.02.2025 06:14, Gyan Doshi wrote:
> SVT-AV1 made a change in their public API in 988e930c but without a
> version bump or any other accessible marker, thus breaking ffmpeg build
> with current versions of SVT-AV1.
>
> They have finally bumped versions a month later, so check added.
> ---
> libavcodec/libsvtav1.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/libavcodec/libsvtav1.c b/libavcodec/libsvtav1.c
> index 79b28eb4df..43fe531fde 100644
> --- a/libavcodec/libsvtav1.c
> +++ b/libavcodec/libsvtav1.c
> @@ -435,7 +435,11 @@ static av_cold int eb_enc_init(AVCodecContext *avctx)
>
> svt_enc->eos_flag = EOS_NOT_REACHED;
>
> +#if SVT_AV1_CHECK_VERSION(3, 0, 0)
> + svt_ret = svt_av1_enc_init_handle(&svt_enc->svt_handle, &svt_enc->enc_params);
> +#else
> svt_ret = svt_av1_enc_init_handle(&svt_enc->svt_handle, svt_enc, &svt_enc->enc_params);
> +#endif
> if (svt_ret != EB_ErrorNone) {
> return svt_print_error(avctx, svt_ret, "Error initializing encoder handle");
> }
LGTM
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [FFmpeg-devel] [PATCH] avcodec/libsvtav1: unbreak build with latest svtav1
2025-02-22 13:17 ` Timo Rothenpieler
@ 2025-02-22 13:29 ` Gyan Doshi
0 siblings, 0 replies; 3+ messages in thread
From: Gyan Doshi @ 2025-02-22 13:29 UTC (permalink / raw)
To: ffmpeg-devel
On 2025-02-22 06:47 pm, Timo Rothenpieler wrote:
> On 22.02.2025 06:14, Gyan Doshi wrote:
>> SVT-AV1 made a change in their public API in 988e930c but without a
>> version bump or any other accessible marker, thus breaking ffmpeg build
>> with current versions of SVT-AV1.
>>
>> They have finally bumped versions a month later, so check added.
>> ---
>> libavcodec/libsvtav1.c | 4 ++++
>> 1 file changed, 4 insertions(+)
>>
>> diff --git a/libavcodec/libsvtav1.c b/libavcodec/libsvtav1.c
>> index 79b28eb4df..43fe531fde 100644
>> --- a/libavcodec/libsvtav1.c
>> +++ b/libavcodec/libsvtav1.c
>> @@ -435,7 +435,11 @@ static av_cold int eb_enc_init(AVCodecContext
>> *avctx)
>> svt_enc->eos_flag = EOS_NOT_REACHED;
>> +#if SVT_AV1_CHECK_VERSION(3, 0, 0)
>> + svt_ret = svt_av1_enc_init_handle(&svt_enc->svt_handle,
>> &svt_enc->enc_params);
>> +#else
>> svt_ret = svt_av1_enc_init_handle(&svt_enc->svt_handle,
>> svt_enc, &svt_enc->enc_params);
>> +#endif
>> if (svt_ret != EB_ErrorNone) {
>> return svt_print_error(avctx, svt_ret, "Error initializing
>> encoder handle");
>> }
>
> LGTM
Thanks. Pushed as d1ed5c06e3edc5f2b5f3664c80121fa55b0baa95
Regards,
Gyan
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-02-22 13:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-22 5:14 [FFmpeg-devel] [PATCH] avcodec/libsvtav1: unbreak build with latest svtav1 Gyan Doshi
2025-02-22 13:17 ` Timo Rothenpieler
2025-02-22 13:29 ` Gyan Doshi
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git