summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2018-06-04 11:02:06 -0700
committerJohn Stebbins <[email protected]>2018-06-04 11:02:06 -0700
commit4822cd72fbeebb0996770ec890e42bb09d9b297f (patch)
tree3211ddf1b330f8a9358ae17f03ff378b46f5c4f1 /libhb
parentd8db092f5201592ff8be0031f69b8a24f552c99a (diff)
sync: don't drop short frames in OutputBuffer()
*really* fix https://github.com/HandBrake/HandBrake/issues/1374 this time.
Diffstat (limited to 'libhb')
-rw-r--r--libhb/sync.c6
1 files changed, 1 insertions, 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);
}