vf_vdpaupp: always provide past and future fields

Some non-deinterlacing filters (potentially denoising) also use
additional frames for filtering. The vdpau docs suggest providing at
least 1 future and 2 past _fields_, which means we need to provide 1
past frame (the future field is already the other field of the current
field, and both fields are in the same frame).

We can easily achieve this by buffering an additional frame in the non-
deint case.
This commit is contained in:
wm4 committed 2014-05-02 01:08:05 +02:00
1 parent 586ea206da
commit 50538c0ea2
1 file changed
+1 -1
+1 -1
View File
@@ -150,7 +150,7 @@ static bool output_field(struct vf_instance *vf, int pos)
static int filter_ext(struct vf_instance *vf, struct mp_image *mpi)
{
struct vf_priv_s *p = vf->priv;
int maxbuffer = p->opts.deint ? MP_ARRAY_SIZE(p->buffered) : 1;
int maxbuffer = p->opts.deint ? MP_ARRAY_SIZE(p->buffered) : 2;
bool eof = !mpi;
if (mpi && mpi->imgfmt != IMGFMT_VDPAU) {