mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 23:32:26 +00:00
strictness level -1 to 'almost' ignore breaks
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13236 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d08eab1eca
commit
04ecde13b1
@ -480,15 +480,19 @@ static int decide_frame_length(struct pullup_context *c)
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user