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.
This commit is contained in:
Philip Langdale 2022-09-28 19:26:17 -07:00 committed by Philip Langdale
parent 345342f50a
commit 1bca62e58b
1 changed files with 0 additions and 5 deletions

View File

@ -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