mirror of
https://github.com/mpv-player/mpv
synced 2025-01-27 18:13:15 +00:00
f_hwtransfer: fix leak of framesconstraints
This commit is contained in:
parent
c7c92240a9
commit
771c8a165a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user