summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-01-15 14:35:07 -0700
committerJohn Stebbins <[email protected]>2016-01-15 14:36:14 -0700
commit7ff0858738340395157cfd3f5faf556d21707902 (patch)
tree96804f0db8a7d2165835c2ba458ce77070037972
parent65acd5b2e6659517f7e1dd5528a4fe99eb89e63b (diff)
sync: fix typo that could result in dropping subtitles
-rw-r--r--libhb/sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/sync.c b/libhb/sync.c
index b10a1b577..dadf1c26a 100644
--- a/libhb/sync.c
+++ b/libhb/sync.c
@@ -438,7 +438,7 @@ static hb_buffer_t * mergeSubtitles(subtitle_sanitizer_t *sanitizer, int end)
buf->s.duration = AV_NOPTS_VALUE;
hb_buffer_list_append(&list, buf);
}
- } while (hb_buffer_list_count(&list) >= 2 || end);
+ } while (hb_buffer_list_count(&sanitizer->list_current) >= 2 || end);
return hb_buffer_list_clear(&list);
}