vf_d3d11vpp: adjust options for userdeint filter

Fixes: #14816
This commit is contained in:
Kacper Michajłow
2024-09-08 17:43:04 +02:00
parent e6c536ae45
commit f6d931301b
2 changed files with 6 additions and 1 deletions

View File

@@ -213,6 +213,9 @@ static int recreate_video_proc(struct mp_filter *vf)
if (FAILED(hr))
goto fail;
if (!p->opts->mode && p->opts->deint_enabled)
p->opts->mode = D3D11_VIDEO_PROCESSOR_PROCESSOR_CAPS_DEINTERLACE_BOB;
int rindex = p->opts->mode ? -1 : 0;
if (rindex == 0)
goto create;