From dd7cc557affff5040d3e8a9a072f01155b591607 Mon Sep 17 00:00:00 2001 From: Lynne Date: Fri, 14 Mar 2025 22:09:11 +0000 Subject: [PATCH] ffv1enc_vulkan: clip micro_version to 3 for level 4 This unbreaks level 4 encoding. --- libavcodec/ffv1enc_vulkan.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/ffv1enc_vulkan.c b/libavcodec/ffv1enc_vulkan.c index e02130c47b..a72ac47f8b 100644 --- a/libavcodec/ffv1enc_vulkan.c +++ b/libavcodec/ffv1enc_vulkan.c @@ -1398,6 +1398,10 @@ static av_cold int vulkan_encode_ffv1_init(AVCodecContext *avctx) return AVERROR_INVALIDDATA; } + /* We target version 4.3 */ + if (f->version == 4 && f->micro_version > 4) + f->micro_version = 3; + //if (fv->ctx.ac == AC_GOLOMB_RICE) { if (0) { int w_a = FFALIGN(avctx->width, LG_ALIGN_W);