mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
vaapi: Always free parameter buffers after vaEndPicture() with libva2
This is an ABI change in libva2: previously the Intel driver had this behaviour and it was implemented as a driver quirk, but now it is part of the specification so all drivers must do it.
This commit is contained in:
parent
bd211bb866
commit
e339411691
4 changed files with 6 additions and 6 deletions
|
|
@ -188,14 +188,14 @@ int ff_vaapi_decode_issue(AVCodecContext *avctx,
|
|||
av_log(avctx, AV_LOG_ERROR, "Failed to end picture decode "
|
||||
"issue: %d (%s).\n", vas, vaErrorStr(vas));
|
||||
err = AVERROR(EIO);
|
||||
if (ctx->hwctx->driver_quirks &
|
||||
if (CONFIG_VAAPI_1 || ctx->hwctx->driver_quirks &
|
||||
AV_VAAPI_DRIVER_QUIRK_RENDER_PARAM_BUFFERS)
|
||||
goto fail;
|
||||
else
|
||||
goto fail_at_end;
|
||||
}
|
||||
|
||||
if (ctx->hwctx->driver_quirks &
|
||||
if (CONFIG_VAAPI_1 || ctx->hwctx->driver_quirks &
|
||||
AV_VAAPI_DRIVER_QUIRK_RENDER_PARAM_BUFFERS)
|
||||
ff_vaapi_decode_destroy_buffers(avctx, pic);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue