mirror of
https://github.com/mpv-player/mpv
synced 2024-12-22 14:52:43 +00:00
vf_vdpaupp: Don't crash when evaluating interlacing of NULL mpi
The interlaced frame test needs to be aware that the input mpi might be NULL - this happens at the end of a stream when the input frames have all been submitted but frames still need to be drained from the decoder.
This commit is contained in:
parent
f3e8108c78
commit
e1ab9b905f
@ -151,7 +151,7 @@ static int filter_ext(struct vf_instance *vf, struct mp_image *mpi)
|
|||||||
p->prev_pos += 2;
|
p->prev_pos += 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool deint = (mpi->fields & MP_IMGFIELD_INTERLACED) || !p->interlaced_only;
|
bool deint = (mpi && (mpi->fields & MP_IMGFIELD_INTERLACED)) || !p->interlaced_only;
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
int current = p->prev_pos - 1;
|
int current = p->prev_pos - 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user