hwcontext: Perform usual uninitialisation on derived frames contexts
This commit is contained in:
parent
5514bab37a
commit
0f93cef2d6
@ -217,10 +217,6 @@ static void hwframe_ctx_free(void *opaque, uint8_t *data)
|
|||||||
{
|
{
|
||||||
AVHWFramesContext *ctx = (AVHWFramesContext*)data;
|
AVHWFramesContext *ctx = (AVHWFramesContext*)data;
|
||||||
|
|
||||||
if (ctx->internal->source_frames) {
|
|
||||||
av_buffer_unref(&ctx->internal->source_frames);
|
|
||||||
|
|
||||||
} else {
|
|
||||||
if (ctx->internal->pool_internal)
|
if (ctx->internal->pool_internal)
|
||||||
av_buffer_pool_uninit(&ctx->internal->pool_internal);
|
av_buffer_pool_uninit(&ctx->internal->pool_internal);
|
||||||
|
|
||||||
@ -229,7 +225,8 @@ static void hwframe_ctx_free(void *opaque, uint8_t *data)
|
|||||||
|
|
||||||
if (ctx->free)
|
if (ctx->free)
|
||||||
ctx->free(ctx);
|
ctx->free(ctx);
|
||||||
}
|
|
||||||
|
av_buffer_unref(&ctx->internal->source_frames);
|
||||||
|
|
||||||
av_buffer_unref(&ctx->device_ref);
|
av_buffer_unref(&ctx->device_ref);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user