mirror of https://github.com/mpv-player/mpv
vf_d3d11vpp: don't force nv12 output
This commit is contained in:
parent
a341b128de
commit
1c34b72aeb
|
@ -94,8 +94,6 @@ struct priv {
|
|||
ID3D11VideoProcessorEnumerator *vp_enum;
|
||||
D3D11_VIDEO_FRAME_FORMAT d3d_frame_format;
|
||||
|
||||
DXGI_FORMAT out_format;
|
||||
|
||||
bool require_filtering;
|
||||
|
||||
struct mp_image_params params, out_params;
|
||||
|
@ -465,9 +463,6 @@ static void vf_d3d11vpp_process(struct mp_filter *vf)
|
|||
p->out_params.crop.y0 = lrintf(p->opts->scale * p->out_params.crop.y0);
|
||||
p->out_params.crop.y1 = lrintf(p->opts->scale * p->out_params.crop.y1);
|
||||
|
||||
p->out_params.hw_subfmt = IMGFMT_NV12;
|
||||
p->out_format = DXGI_FORMAT_NV12;
|
||||
|
||||
p->require_filtering = p->params.hw_subfmt != p->out_params.hw_subfmt ||
|
||||
p->params.w != p->out_params.w ||
|
||||
p->params.h != p->out_params.h;
|
||||
|
|
Loading…
Reference in New Issue