f_hwtransfer: fix leak of framesconstraints

This commit is contained in:
Thomas Weißschuh 2023-02-03 13:15:16 +00:00 committed by Philip Langdale
parent c7c92240a9
commit 771c8a165a
1 changed files with 1 additions and 0 deletions

View File

@ -385,6 +385,7 @@ static bool probe_formats(struct mp_hwupload *u, int hw_imgfmt)
av_buffer_unref(&frames);
}
av_hwframe_constraints_free(&cstr);
p->av_device_ctx = av_buffer_ref(ctx->av_device_ref);
if (!p->av_device_ctx)
return false;