From 13b184f35a4343ea1f7e7e6a9c67db236ed25de8 Mon Sep 17 00:00:00 2001 From: rfelker Date: Thu, 17 Mar 2005 00:43:55 +0000 Subject: 1000l to me: could break a/v sync and eventually cause buffer exhaustion on soft-telecined input that's ugly git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14955 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vf_pullup.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'libmpcodecs') diff --git a/libmpcodecs/vf_pullup.c b/libmpcodecs/vf_pullup.c index 118ab23f5d..86a461756e 100644 --- a/libmpcodecs/vf_pullup.c +++ b/libmpcodecs/vf_pullup.c @@ -178,7 +178,14 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi) if (!f) return 0; if (f->length < 2) { pullup_release_frame(f); - return 0; + if (!(mpi->fields & MP_IMGFIELD_REPEAT_FIRST)) + return 0; + f = pullup_get_frame(c); + if (!f) return 0; + if (f->length < 2) { + pullup_release_frame(f); + return 0; + } } } -- cgit v1.2.3