mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
Merge commit '216c44dfc1'
* commit '216c44dfc1':
vaapi_encode: Destroy output buffer pool before VA context
Merged-by: Mark Thompson <sw@jkqxz.net>
This commit is contained in:
commit
9e3e9a3728
1 changed files with 2 additions and 2 deletions
|
|
@ -1564,6 +1564,8 @@ av_cold int ff_vaapi_encode_close(AVCodecContext *avctx)
|
|||
vaapi_encode_free(avctx, pic);
|
||||
}
|
||||
|
||||
av_buffer_pool_uninit(&ctx->output_buffer_pool);
|
||||
|
||||
if (ctx->va_context != VA_INVALID_ID) {
|
||||
vaDestroyContext(ctx->hwctx->display, ctx->va_context);
|
||||
ctx->va_context = VA_INVALID_ID;
|
||||
|
|
@ -1574,8 +1576,6 @@ av_cold int ff_vaapi_encode_close(AVCodecContext *avctx)
|
|||
ctx->va_config = VA_INVALID_ID;
|
||||
}
|
||||
|
||||
av_buffer_pool_uninit(&ctx->output_buffer_pool);
|
||||
|
||||
av_freep(&ctx->codec_sequence_params);
|
||||
av_freep(&ctx->codec_picture_params);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue