From: John Stebbins Date: Mon, 4 Jun 2018 18:02:06 +0000 (-0700) Subject: sync: don't drop short frames in OutputBuffer() X-Git-Tag: 1.2.0~405 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4822cd72fbeebb0996770ec890e42bb09d9b297f;p=handbrake sync: don't drop short frames in OutputBuffer() *really* fix https://github.com/HandBrake/HandBrake/issues/1374 this time. --- 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); }