mirror of https://github.com/mpv-player/mpv
vf_d3d11vpp: fix output image format if not doing any filtering
For example it should be set to IMGFMT_D3D11NV12 if it isn't already. Otherwise, an assertion in vf.c could trigger. This probably couldn't be provoked yet.
This commit is contained in:
parent
46f1ce1e2f
commit
7cd1a3c766
|
@ -360,8 +360,11 @@ static int filter_out(struct vf_instance *vf)
|
|||
|
||||
// no filtering
|
||||
if (!mp_refqueue_should_deint(p->queue) && !p->require_filtering) {
|
||||
struct mp_image *in = mp_refqueue_get(p->queue, 0);
|
||||
vf_add_output_frame(vf, mp_image_new_ref(in));
|
||||
struct mp_image *in = mp_image_new_ref(mp_refqueue_get(p->queue, 0));
|
||||
if (!in)
|
||||
return -1;
|
||||
mp_image_set_params(in, &p->out_params);
|
||||
vf_add_output_frame(vf, in);
|
||||
mp_refqueue_next(p->queue);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue