From d57de8335282d99c6544009cacecb91044f8b7ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Mon, 27 Oct 2025 15:38:07 +0100 Subject: [PATCH] avcodec/d3d12va_encode: fix format specifier for HRESULT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kacper Michajłow --- libavcodec/d3d12va_encode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/d3d12va_encode.c b/libavcodec/d3d12va_encode.c index 4a8672a359..aa8a5982be 100644 --- a/libavcodec/d3d12va_encode.c +++ b/libavcodec/d3d12va_encode.c @@ -1511,7 +1511,7 @@ int ff_d3d12va_encode_init(AVCodecContext *avctx) format_info.Format = ((AVD3D12VAFramesContext *)base_ctx->input_frames->hwctx)->format; if (FAILED(ID3D12VideoDevice_CheckFeatureSupport(ctx->hwctx->device, D3D12_FEATURE_FORMAT_INFO, &format_info, sizeof(format_info)))) { - av_log(avctx, AV_LOG_ERROR, "Failed to query format plane count: 0x%x\n", hr); + av_log(avctx, AV_LOG_ERROR, "Failed to query format plane count: %#lx\n", hr); err = AVERROR_EXTERNAL; goto fail; }