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

vulkan_ffv1: enable acceleration on Intel

Fixed by previous commit.
This commit is contained in:
Lynne
2025-04-12 06:24:03 +00:00
parent a1137f9214
commit d077e00f3e

View File

@ -1142,20 +1142,6 @@ static int vk_decode_ffv1_init(AVCodecContext *avctx)
return err; return err;
ctx = dec->shared_ctx; ctx = dec->shared_ctx;
switch (ctx->s.driver_props.driverID) {
case VK_DRIVER_ID_INTEL_PROPRIETARY_WINDOWS:
case VK_DRIVER_ID_INTEL_OPEN_SOURCE_MESA:
if (avctx->strict_std_compliance < FF_COMPLIANCE_UNOFFICIAL) {
av_log(avctx, AV_LOG_ERROR,
"Intel's drivers are unsupported, use -strict -1 to enable acceleration.\n");
return AVERROR(ENOTSUP);
} else {
av_log(avctx, AV_LOG_WARNING,
"Enabling acceleration on Intel's drivers.\n");
}
break;
};
fv = ctx->sd_ctx = av_mallocz(sizeof(*fv)); fv = ctx->sd_ctx = av_mallocz(sizeof(*fv));
if (!fv) { if (!fv) {
err = AVERROR(ENOMEM); err = AVERROR(ENOMEM);