changeset 13235:bc7cb8cf36b2

strictness level -1 to 'almost' ignore breaks
author rfelker
date Fri, 03 Sep 2004 00:08:58 +0000
parents 7056d7cfcd02
children 97a6f049c9f8
files libmpcodecs/pullup.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/pullup.c	Thu Sep 02 23:51:05 2004 +0000
+++ b/libmpcodecs/pullup.c	Fri Sep 03 00:08:58 2004 +0000
@@ -480,15 +480,19 @@
 	struct pullup_field *f1 = f0->next;
 	struct pullup_field *f2 = f1->next;
 	struct pullup_field *f3 = f2->next;
+	int l;
 	
 	if (queue_length(c->first, c->last) < 6) return 0;
 	foo(c);
 
 	if (f0->affinity == -1) return 1;
 
-	switch (find_first_break(f0, 3)) {
+	l = find_first_break(f0, 3);
+	if (l == 1 && c->strict_breaks < 0) l = 0;
+	
+	switch (l) {
 	case 1:
-		if (!c->strict_breaks && f0->affinity == 1 && f1->affinity == -1)
+		if (c->strict_breaks > 0 && f0->affinity == 1 && f1->affinity == -1)
 			return 2;
 		else return 1;
 	case 2: