diff options
author | Philip Langdale <philipl@overt.org> | 2022-09-28 19:26:17 -0700 |
---|---|---|
committer | Philip Langdale <github.philipl@overt.org> | 2022-10-15 09:57:09 -0700 |
commit | 1bca62e58b6be4b530ffde12922bf555aefa412f (patch) | |
tree | d746de36104e35885ec971bad5a8ff4da362a18d | |
parent | 345342f50ab533f08ff9b1603279b5580acfefe1 (diff) | |
download | mpv-1bca62e58b6be4b530ffde12922bf555aefa412f.tar.bz2 mpv-1bca62e58b6be4b530ffde12922bf555aefa412f.tar.xz |
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.
-rw-r--r-- | filters/f_hwtransfer.c | 5 |
1 files changed, 0 insertions, 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 |