From 1bca62e58b6be4b530ffde12922bf555aefa412f Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Wed, 28 Sep 2022 19:26:17 -0700 Subject: [PATCH] f_hwtransfer: accept non-power-of-2 hw uploads This works fine for me on vaapi, cuda and vulkan. Why did we have this restriction in there? Worst case, the hwdec_interop will reject it. --- filters/f_hwtransfer.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/filters/f_hwtransfer.c b/filters/f_hwtransfer.c index 9f4874aa4e..096eef5cc4 100644 --- a/filters/f_hwtransfer.c +++ b/filters/f_hwtransfer.c @@ -148,11 +148,6 @@ static void process(struct mp_filter *f) return; } - if (src->w % 2 || src->h % 2) { - MP_ERR(f, "non-mod 2 input frames unsupported\n"); - goto error; - } - if (src->imgfmt != p->last_input_fmt) { if (IMGFMT_IS_HWACCEL(src->imgfmt)) { // Because there cannot be any conversion of the sw format when the