diff options
author | Mark Thompson <sw@jkqxz.net> | 2017-10-01 22:51:20 +0100 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2017-10-09 00:11:53 +0100 |
commit | e339411691e3671b595e556ba3411c1acb8c4692 (patch) | |
tree | b36788fe9a8467d7e899ac239f6be577e481dc63 /libavcodec/vaapi_decode.c | |
parent | bd211bb866f8bf5c372589fc44dc06d1a9509c0a (diff) | |
download | ffmpeg-e339411691e3671b595e556ba3411c1acb8c4692.tar.gz |
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.
Diffstat (limited to 'libavcodec/vaapi_decode.c')
-rw-r--r-- | libavcodec/vaapi_decode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vaapi_decode.c b/libavcodec/vaapi_decode.c index 4f0ff84e01..5a555b2bd3 100644 --- a/libavcodec/vaapi_decode.c +++ b/libavcodec/vaapi_decode.c @@ -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); |