diff options
author | John Stebbins <[email protected]> | 2016-05-17 14:57:07 -0600 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-05-17 14:57:07 -0600 |
commit | 1d31b9c7210833c2241a712a6b338c4aa9526393 (patch) | |
tree | 150e72e581362ed2b3f10b037181fd4011befecf /libhb/sync.c | |
parent | 617689bbb0bf44ac0dc0b86631581591dc472883 (diff) |
sync: handle very short streams better
If the entire stream fits in the sync queues, the first PTS was not
detected and initial offsets were not applied.
Diffstat (limited to 'libhb/sync.c')
-rw-r--r-- | libhb/sync.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libhb/sync.c b/libhb/sync.c index ca7a4063f..69e6d18e4 100644 --- a/libhb/sync.c +++ b/libhb/sync.c @@ -686,6 +686,10 @@ static void streamFlush( sync_stream_t * stream ) { while (hb_list_count(stream->in_queue) > 0) { + if (!stream->common->found_first_pts) + { + checkFirstPts(stream->common); + } fixStreamTimestamps(stream); hb_buffer_t * buf = hb_list_item(stream->in_queue, 0); if (buf != NULL) |