diff --git a/filters/f_hwtransfer.c b/filters/f_hwtransfer.c index 050b674db8..13a2224e95 100644 --- a/filters/f_hwtransfer.c +++ b/filters/f_hwtransfer.c @@ -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;