changeset 14954:fe1dfcfcc3bf

1000l to me: could break a/v sync and eventually cause buffer exhaustion on soft-telecined input that's ugly
author rfelker
date Thu, 17 Mar 2005 00:43:55 +0000
parents 01b287731c7b
children 081167e3d000
files libmpcodecs/vf_pullup.c
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_pullup.c	Wed Mar 16 21:03:14 2005 +0000
+++ b/libmpcodecs/vf_pullup.c	Thu Mar 17 00:43:55 2005 +0000
@@ -178,7 +178,14 @@
 		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;
+			}
 		}
 	}