From 4822cd72fbeebb0996770ec890e42bb09d9b297f Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Mon, 4 Jun 2018 11:02:06 -0700 Subject: [PATCH] sync: don't drop short frames in OutputBuffer() *really* fix https://github.com/HandBrake/HandBrake/issues/1374 this time. --- libhb/sync.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libhb/sync.c b/libhb/sync.c index 639baad46..2b7ec17d9 100644 --- a/libhb/sync.c +++ b/libhb/sync.c @@ -1769,8 +1769,7 @@ static void OutputBuffer( sync_common_t * common ) log_chapter(common, buf->s.new_chap, out_stream->frame_count, buf->s.start); } - if ((buf->s.start < 0) || - (out_stream->type == SYNC_TYPE_VIDEO && buf->s.duration < 256)) + if (buf->s.start < 0) { // The pipeline can't handle negative timestamps // and it is sometimes not possible to avoid one @@ -1780,9 +1779,6 @@ static void OutputBuffer( sync_common_t * common ) // until we have seen the first PTS for all streams // so sometimes we may start before we have seen // the earliest PTS - // - // Also, encx264.c can't handle timestamps that are spaced - // less than 256 ticks apart. saveChap(out_stream, buf); hb_buffer_close(&buf); } -- 2.40.0