1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

ffv1enc_vulkan: clip micro_version to 3 for level 4

This unbreaks level 4 encoding.
This commit is contained in:
Lynne
2025-03-14 22:09:11 +00:00
parent b2ebe9884e
commit dd7cc557af

View File

@ -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);