diff options
Diffstat (limited to 'video/vaapi.c')
-rw-r--r-- | video/vaapi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/vaapi.c b/video/vaapi.c index 171ccdfcbd..76a197cca2 100644 --- a/video/vaapi.c +++ b/video/vaapi.c @@ -224,6 +224,8 @@ error: void va_destroy(struct mp_vaapi_ctx *ctx) { if (ctx) { + av_buffer_unref(&ctx->av_device_ref); + if (ctx->display) vaTerminate(ctx->display); |