mirror of https://github.com/mpv-player/mpv
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:
parent
345342f50a
commit
1bca62e58b
|
@ -148,11 +148,6 @@ static void process(struct mp_filter *f)
|
||||||
return;
|
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 (src->imgfmt != p->last_input_fmt) {
|
||||||
if (IMGFMT_IS_HWACCEL(src->imgfmt)) {
|
if (IMGFMT_IS_HWACCEL(src->imgfmt)) {
|
||||||
// Because there cannot be any conversion of the sw format when the
|
// Because there cannot be any conversion of the sw format when the
|
||||||
|
|
Loading…
Reference in New Issue